| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Admin Category Products Sale Updater | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Admin Category Products Sale Updater
Hello Everyone,
We are constantly putting items on sale and taking others off sale. I have wanted a more efficient way of handling this without having to do export/edit/import. I finally got around to making the necessary changes in a couple of files. The attached image shows 3 new columns tacked on to the right. On the Admin Category Products page you can now edit the 'List Price(market price)' and if you have the "On Sale Module' you can turn the 'Sale' ribbon on and off too. If you have a value in both Price fields you will see the amount of discount. If 'Your Price' is greater than the 'List(market price)' it will show 'P>L ?'. I hope this is of use to some of you and feel free to edit/correct what I've done. Thanks, Paul In: include/process_product.php After: Code:
Add: Code:
In file: skin/common_files/main/products.tpl Before: Code:
add: Code:
Before Code:
Add: Code:
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best |
|||||||
|
#2
|
|||||||
|
|||||||
Re: Admin Category Products Sale Updater
Nice one Paul, hope the house is coming along nicely...
__________________
xcartmods.co.uk |
|||||||
|
#3
|
|||||||
|
|||||||
Re: Admin Category Products Sale Updater
Hi Phil !
Thanks! I'll send you a pic of the house progress later today. Can't wait to hear about your new template! Have a great day! Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best |
|||||||
#4
|
|||||||
|
|||||||
Re: Admin Category Products Sale Updater
I was using this yesterday morning and thought of a way to make it much easier and super quick. What if there was a pull down where I could select the discount and then click update and the price, list price, and On Sale Y/N selection would all be done for me. So I spent a few hours in the afternoon working on it.
Please feel free to post all edits/corrections. I've not fully tested if you don't have the "On Sale" Module. Test on your development store before using on your live store. Use at your own risk as I only know enough to be dangerous Edited: This only works for items < $1000 !!! The below attachment shows how it works. On the attachment you can see the new column added to set the discount amount. I had to add a field to the 'xcart_products' table called 'set_discount'. Code:
I set the default amount to 99. A value of 99 is the manual mode and with all products having a 99 default value no changes are made to existing pricing. I only use the 'list price' when I have something on sale and it's zero the rest of the time. If you use 'list price' differently you'll have to edit the code. The edited code sections are below and replace the original 3 edits from the above post. Code:
Code:
Code:
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|