Note that there are some explanatory texts on larger screens.

plurals
  1. POShow 'free shipping' button in Magento product grid
    primarykey
    data
    text
    <p>I want to make a button in the product grid for products that have free shipping enabled, like this method: <a href="http://www.immense.net/magento-free-shipping-certain-products/" rel="nofollow">http://www.immense.net/magento-free-shipping-certain-products/</a></p> <p>To make it clear: I want a button in the product grid, above the "Add to cart" button, for the products with free shipping enabled. I already done the steps from the URL and tried to put the code in the product grid, but that doesn't work.</p> <p>Do you know how I can do this?</p> <p>Thank you!</p> <p>Edit 2: Fabian and others,</p> <p>It works great now, thank you! But I want also that when the product price is above 65, the "Free shipping" message is also displayed. OR the product must have the free shipping attribute to YES, OR the product must be 65 euro or more expensive to show the "Free shipping" text.</p> <p>I edited the code like this, but only the products with "Free Shipping" on YES are displayed well. The products above 65 not. Can you see what I've done wrong?</p> <p>Thanks!</p> <pre><code>&lt;?php // Determine if product "free shipping" is true if ($_product-&gt;getGratisVerzending()) { echo '&lt;span class="freeShip"&gt;'.$_product-&gt;getAttributeText('gratis_verzending').'&lt;/span&gt;'; } // Determine if product costs more than 65 else if ($_product-&gt;getPrice() &gt; 65) { echo '&lt;span class="freeShip"&gt;'.$_product-&gt;getAttributeText('gratis_verzending').'&lt;/span&gt;'; } ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload