Community Forums

[vQmod] Enter Percentage for Discounts & Specials

Free manual modifications can be contributed here. Modifications are manual snippets of code that are pasted into the forums for others to use.

[vQmod] Enter Percentage for Discounts & Specials

Postby Qphoria » Mon Sep 14, 2009 1:05 pm

If you want to be able to apply discounts & specials by percentage, this is a quick mod to allow it. This particular mod works by taking the percentage at the time of entry and converting it to a value when the save button is clicked.

Example:
If you have a product that is $125
and you want to give 10% off you can simply type "10%" in the discount/special price field. When you click save, it will convert it to $12.50. Then subtract that from the normal price. Making the Special price of 10% off of 125 = $112.50. The next time you edit that product, the special/discount will show "12.50". So the percentage is calculated at the time of saving. If you want to change it to 20% there, then just replace 12.50 with 20% and it will do it for you again.

WORKS WITH ALL 1.4.x AND 1.5.x VERSIONS
Attachments
Enter_Percents_For_Discounts_and_Specials.xml
(1.72 KiB) Downloaded 1056 times
Last edited by Qphoria on Mon Jul 08, 2013 3:22 pm, edited 4 times in total.
Reason: Works with Version added
ImageImage
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 19193
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby Qphoria » Tue Apr 24, 2012 3:58 pm

Updated for 1.5.x support and created as vQmod
ImageImage
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 19193
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby aaron1988 » Tue Apr 24, 2012 5:51 pm

Hi Q,

Just wanted to reply and say this works like a charm thankyou so much for this great update :)

Kind Regards,
Aaron
aaron1988
 
Posts: 269
Joined: Wed Jan 26, 2011 9:03 pm

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby Qphoria » Tue Apr 24, 2012 7:46 pm

Great!
ImageImage
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 19193
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby alanrobinsonleigh » Sat May 05, 2012 5:15 pm

Qphoria wrote:If you want to be able to apply discounts & specials by percentage, this is a quick mod to allow it. This particular mod works by taking the percentage at the time of entry and converting it to a value.

Example:
If you have a product that is $125
and you want to give 10% off you can simply type "10%" in the discount/special price field. When you click save, it will convert it to $12.50. Then subtract that from the normal price. Making the Special price of 10% off of 125 = $112.50. The next time you edit that product, the special/discount will show "12.50". So the percentage is calculated at the time of saving.

WORKS WITH ALL 1.4.x AND 1.5.x VERSIONS


ive been looking for this all over and even created a topic for it. thanks Qphoria
alanrobinsonleigh
 
Posts: 41
Joined: Thu May 26, 2011 4:09 am

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby willistheeggman » Mon Jul 02, 2012 7:30 pm

Thank you so much for this. Works perfectly! ;)
willistheeggman
 
Posts: 4
Joined: Sun Apr 08, 2012 12:05 pm

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby MLPages » Thu Oct 11, 2012 9:13 pm

You are awesome Q.
MLPages
 
Posts: 5
Joined: Mon Aug 08, 2011 1:40 pm

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby HighCore » Wed Nov 21, 2012 5:14 am

Hi,

Thank you for this great extensions.

My only problem is that:

How can i set the percentagles in bulk ? - Because i have 2000 products, and now i need set the one by one.

I need something like:

10pcs - 10%
20pcs - 20%
30pcs - 30%

for almost every products....

thank you
HighCore
 
Posts: 2
Joined: Mon Mar 05, 2012 6:32 am

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby trichask » Fri Apr 26, 2013 3:16 am

Very good job! Well done!! It works perfectly :) :)
trichask
 
Posts: 1
Joined: Fri Apr 26, 2013 3:14 am

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby heatherm » Sat Aug 24, 2013 6:47 pm

Hi Q,
Can it make the percentage stay active, so that if the product price is changed, the discounts will automatically 'update' - not actually update, but remain a percentage of the price, no matter what the price is.
Thanks
heatherm
 
Posts: 9
Joined: Fri Jul 26, 2013 9:35 pm

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby Qphoria » Mon Aug 26, 2013 11:25 am

heatherm wrote:Hi Q,
Can it make the percentage stay active, so that if the product price is changed, the discounts will automatically 'update' - not actually update, but remain a percentage of the price, no matter what the price is.
Thanks


Not with this mod.. this was only a quick hack to allow you to enter it in percentages. When you click save it stores the data as the pre-calculated value. For something to store as the percentage, that requires a much larger job as other areas on both the admin and the catalog side for price calculations would need to change
ImageImage
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 19193
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby svavrek » Wed Sep 18, 2013 9:13 am

How do you begin to use this? Where do you upload the XML file to?
svavrek
 
Posts: 65
Joined: Fri May 10, 2013 11:05 am

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby Qphoria » Wed Sep 18, 2013 10:00 am

svavrek wrote:How do you begin to use this? Where do you upload the XML file to?

Read this first to understand and install "vQmod"
viewtopic.php?f=23&t=40987&p=196942#p196942
ImageImage
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 19193
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby svavrek » Wed Sep 18, 2013 11:00 am

Ok I did that, uploaded VQMOD to the root with 777 permissions. Went to the site /vqmod/install and it does not give any messages, error or otherwise. Nothing in the vqcache folder, either... ???
svavrek
 
Posts: 65
Joined: Fri May 10, 2013 11:05 am

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby Qphoria » Wed Sep 18, 2013 11:19 am

svavrek wrote:Ok I did that, uploaded VQMOD to the root with 777 permissions. Went to the site /vqmod/install and it does not give any messages, error or otherwise. Nothing in the vqcache folder, either... ???


what does it show? link?
ImageImage
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 19193
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby svavrek » Thu Sep 19, 2013 10:21 am

It just remains a blank web browser... ill PM the link
svavrek
 
Posts: 65
Joined: Fri May 10, 2013 11:05 am

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby alexferr » Fri May 23, 2014 9:10 am

Hello,

I'm new in forum, i use opencart 1.5.5.1, i installed [vQmod] Enter Percentage for Discounts & Specials, but dont do nothing...

What i doing wrong ?

I just coy xml file to xml folder.

Thanks
alexferr
 
Posts: 2
Joined: Fri May 23, 2014 9:05 am

Re: [vQmod] Enter Percentage for Discounts & Specials

Postby raj79 » Sat Jul 12, 2014 4:22 am

hello !

we have installed this one . but not working ?


where is fault ? guide us please.

Thanks in advance !
raj79
 
Posts: 29
Joined: Fri Jun 06, 2014 2:57 am
Location: Delhi


Return to Modifications

Who is online

Users browsing this forum: No registered users and 12 guests

Hosted by Arvixe Web Hosting