Hello webdesigner!
If "show plus shipping" link is enabled for category/product view and product price is higher than "_JSHOP_FROM_PRICE_SHIPPING_FREE" than do not show "plus shipping" link.
What do you think?
14.11.2011 22:54
|
|
Onofrei
Name: Mihai-Codrut
06.03.2011
Сообщения: 55
|
|
15.11.2011 13:00
|
|
admin
(Support Team) Name: Admin
05.08.2010
Сообщения: 25922
|
|
15.11.2011 14:18
|
|
Onofrei
Name: Mihai-Codrut
06.03.2011
Сообщения: 55
|
Aw: Conditional "Plus Shipping" link
Hello webdesigner, It seems you misunderstood me. What I wanted to achieve is to show "plus shipping" link ONLY if the product price is lower than the value defined as "summ_null_shipping" or the cart "fullsumm" < "summ_null_shipping" and I suggested you to be a standard feature. All you have to do is to edit 1 line in 7 files: - template/default/category/category_default.php: instead of <?php if ($this->config->show_plus_shipping_in_product){?> to have <?php if ($this->config->show_plus_shipping_in_product && $product->product_price < $this->config->summ_null_shipping){?> - template/default/product/product_default.php: instead of <?php if ($this->config->show_plus_shipping_in_product){?> to have <?php if ($this->config->show_plus_shipping_in_product && $this->product->getPriceCalculate() < $this->config->summ_null_shipping){?> - template/default/products/listproducts.php: instead of <?php if ($this->config->show_plus_shipping_in_product){?> to have <?php if ($this->config->show_plus_shipping_in_product && $product->product_price < $this->config->summ_null_shipping){?> - template/default/manufacturer/products.php: instead of <?php if ($this->config->show_plus_shipping_in_product){?> to have <?php if ($this->config->show_plus_shipping_in_product && $product->product_price < $this->config->summ_null_shipping){?> - template/default/vendor/products.php: instead of <?php if ($this->config->show_plus_shipping_in_product){?> to have <?php if ($this->config->show_plus_shipping_in_product && $product->product_price < $this->config->summ_null_shipping){?> - template/default/search/result.php: instead of <?php if ($this->config->show_plus_shipping_in_product){?> to have <?php if ($this->config->show_plus_shipping_in_product && $product->product_price < $this->config->summ_null_shipping){?> - template/default/cart/cart.php: instead of <?php if ($this->config->show_plus_shipping_in_product){?> to have <?php if ($this->config->show_plus_shipping_in_product && $this->fullsumm < $this->config->summ_null_shipping){?> Regards |