I'm trying to adjust the product feed in an older Magento 1 shop with the add-on "Simple Google Shopping" so that the shipping costs are returned depending on the product weight.
This Plugin is php-based: User Guide
This is the snippet of code that doesn't work for me. Do you have any idea what the problem could be?
<g:price>
<?
if( {weight} >= 31.5)
{return 79.90;}
else
{return 4.00;}
?>
</g:price>
I've found the solution:
The problem was that, contrary to the user guide, the variable call has to look like this:
$weight and not '{weight}' or '$product->weight'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.