Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: free delivery on category page

free delivery on category page 7 years 1 month ago #14831

Hi.
I need make info for buyers, that product have free delivery price.

On product detail page i was make custom code in productdetail/default.php
<div class="Doprava" style="color: #F44336;font-weight: 700;"> 
			<?php // zobrazení dopravy zdarma
	   if ($this->product->prices['salesPrice']>=4000 ){ 
		echo JText::_('COM_VIRTUEMART_CART_FREE_SHIPPING');
		}?>
			</div>
this code show info in product, where price is 4000,- and more.

this info i need use in category page. I trying set this code to flex2.php but dont work it. why?

PS:I am designer, not php master :)

I am using joomla 2.5.28 and VM 2.6.22 and 2.0.14 (double website)
The topic has been locked.

free delivery on category page 7 years 1 month ago #14840

In the category page, you can't use
if ($this->product->prices['salesPrice']>=4000 ){ 

you have to use this expression instead
if ($product->prices['salesPrice']>=4000 ){ 

-- without the this->

so, the full code to use on "category page" would be these lines:
<div class="Doprava" style="color: #F44336;font-weight: 700;"> 
			<?php // zobrazení dopravy zdarma
	   if ($product->prices['salesPrice']>=4000 ){ 
		echo JText::_('COM_VIRTUEMART_CART_FREE_SHIPPING');
		}?>
			</div>

Regards.
The topic has been locked.

free delivery on category page 7 years 1 month ago #14862

nice :) its work! :)

and now, can i make this code for cart?
i need make this code to cart page, or flexible cart module, where i need show for buyers price to get free delivery. i thing so . . . if i have product with price 1500,- . . . in the cart page show info for this buyer "To free delivery, add products with price 2500, -"
This will probably be more difficult, is not it?

PS. Sorry for my very bad english :(
The topic has been locked.

free delivery on category page 7 years 1 month ago #14863

Hi,

Yes, it is possible You can do it. But it is not that easy and unfortunately i can't help you here. Because this you are asking is 100% custom modifications (because you want to change how the things work/look) and unfortunately we don't provide free support or step-by-step instructions for custom coding modifications.

You may purchase premium support:
www.flexiblewebdesign.com/premium-support

and let us take care this modification for you directly on your website though.

Regards.
Support
The topic has been locked.

free delivery on category page 7 years 1 month ago #14876

hi. mabye this is good idea for next relase?
The topic has been locked.

free delivery on category page 7 years 1 month ago #14886

yeah, might be. But this is very specific inquiry. I don't think we will consider adding it to template by default.
The topic has been locked.
Time to create page: 0.183 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo