Page 2 of 2

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Thu Dec 01, 2011 1:38 pm
by roozaimee
terrier wrote:Go under product -> click on Special tab -> add your special price amount -> save

Go to your site and click on the product.. you should see a regular and discounted value -> with the discounted %
hi

I upload the file directly with vqmod manager..
and I see no error in the log

but the save % doesnt appear..

please advise...

best regards

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Sun Dec 04, 2011 12:56 am
by Rainforest
will this work with 1.4.9.6?

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Tue Jan 24, 2012 6:44 am
by pbenfield
Will this code also work with 1.4.9.4 ??

discount_amount.xml

Would appreciate a reply

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Fri Jan 27, 2012 12:33 am
by Zarsk
One of the first VQMods I tried and worked perfectly. Brilliant!!!!

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Tue Jan 31, 2012 3:49 pm
by MZBS
I love you ;D ;D ;D ;D

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Wed Feb 08, 2012 7:06 pm
by pbenfield
This is great for 1.5 but how can you do this for 1.4.9.4

in product.tpl 1.4.9.4 does not have code:

Code: Select all

<span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span>
All so far entered here do not work

appreciate for 1.4.9.4

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Mon Feb 27, 2012 1:27 pm
by cellhook
fido-x wrote:Following from this thread: http://forum.opencart.com/viewtopic.php?f=22&t=22341, and at i2Paq's request, here's the vQmod to show the discounted amount and the percentage saved for special offer products and discounts.
discount_amount.xml
I think I need your special help. I want same thing but not getting how I can make modifications and how I can get desired result.

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Fri Aug 24, 2012 10:17 pm
by i2Paq
Works with 1.5.4.x!

Would love to see it working on the Product list ::)

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Sun Oct 07, 2012 8:59 pm
by v-v
Hi, need some advise / help with making a condition when product price is 0. I use a "call for price" module, where when price is zero so text "ask for price" will appear instead displaying a price.

But unfortunately, when price is zero, there is divison by zero problem when counting percentage savings ...

Can some help me how to set a condition to avoid division by zero? I guess this conditon (if ... else ...) must be put in controller, but i dont know the right syntax / code.

Many thanks ...

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Mon Nov 26, 2012 8:12 pm
by Furet
Hi,
anybody that can help me in using this exellent mod also now that I have started to use Shoppica2 theme?
Thanks!

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Fri Nov 30, 2012 3:38 pm
by i2Paq
Furet wrote:Hi,
anybody that can help me in using this exellent mod also now that I have started to use Shoppica2 theme?
Thanks!
Ask your Shoppica2 theme seller as this template SUCKS.
It is almost impossible to support that theme.

So the issue lies with Shoppica2 theme, not with this mod.

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Thu Mar 28, 2013 8:15 am
by webnow
Hi, using this mod and it works great. Could someone please help me with the following question?

How do I add a word preceding the word price. Here is the code from this xml module:
I want to to say: Regular Price %variable for regular price and Discounted price then %variable for discounted price
So, just adding one word before Price ie: the word "Regular" and one word before the special or discounted price ie: the word "Discounted"

Could someone please help give me an example using code below on where this text should go?

Thank you!



<file name="catalog/view/theme/default/template/product/product.tpl">
<operation>
<search position="after" index="1"><![CDATA[
<span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span>
]]></search>
<add><![CDATA[
<!-- Discounted price -->
<table>
<tr>
<td style="width: 80px;"><?php echo $text_discounted; ?></td>
<td><?php echo $discount_amount; ?></td>
</tr>
<tr>
<td><?php echo $text_percent_saved; ?></td>
<td><?php echo $percent_savings; ?>%</td>
</tr>
</table>

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Thu Aug 29, 2013 3:48 am
by bobmartinusa
Just installed in 1.5.5.1 and it worked brilliantly

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Thu Jun 26, 2014 8:44 pm
by xsaintzx
How can I modify this to work in category and latest page?
Should be something to deal with category.tpl and latest.tpl..

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Fri Jul 11, 2014 8:39 pm
by raj79
we are using same in http://www.apnakiranastore.com/index.ph ... Saunf+Moti . But not showing discounted price..

Re: [vQmod] Regular and Discount Prices 1.5.x

Posted: Tue Dec 09, 2014 11:29 pm
by Taskmc
webnow wrote:Hi, using this mod and it works great. Could someone please help me with the following question?

How do I add a word preceding the word price. Here is the code from this xml module:
I want to to say: Regular Price %variable for regular price and Discounted price then %variable for discounted price
So, just adding one word before Price ie: the word "Regular" and one word before the special or discounted price ie: the word "Discounted"

Could someone please help give me an example using code below on where this text should go?

Thank you!



<file name="catalog/view/theme/default/template/product/product.tpl">
<operation>
<search position="after" index="1"><![CDATA[
<span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span>
]]></search>
<add><![CDATA[
<!-- Discounted price -->
<table>
<tr>
<td style="width: 80px;"><?php echo $text_discounted; ?></td>
<td><?php echo $discount_amount; ?></td>
</tr>
<tr>
<td><?php echo $text_percent_saved; ?></td>
<td><?php echo $percent_savings; ?>%</td>
</tr>
</table>
Hi, i have the same problem...can anyone help me?