You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No problem. I have optimised the whole thing to use a new function from the currencies class... $currencies->display_raw() - this deals with wacky setups like shopowners who sell in Euros, where the decimal point is a comma.
Error when validating page when module is enabled on index page.
includes/modules/content/index/cm_i_new_products.php line 36 needs to be changed from
global $oscTemplate, $new_products_category_id, $languages_id, $currencies, $PHP_SELF;
to
global $oscTemplate, $new_products_category_id, $languages_id, $currencies, $PHP_SELF, $currency;
includes/modules/content/index/templates/new_products.php
line 28 needs to be changed from
<p class="text-center" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><span itemprop="price"><?php echo $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])); ?></span></p>
to
<p class="text-center" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><span itemprop="price" content="<?php echo preg_replace('/[^0-9.]*/', '', $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id']))); ?>"><meta itemprop="priceCurrency" content="<?php echo tep_output_string($currency); ?>" /><?php echo $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])); ?></span></p>
Code tested and working, validates correctly at https://search.google.com/structured-data/testing-tool
The text was updated successfully, but these errors were encountered: