-
Re: DUAL Pricing version 2
Has anyone figured out how to fix the problem with the wholesale prices rounding down??? for example if you put in $4.50 it will put it in at $4.00
I have seen some post where you have to check your currency decimal place, but i have the correct settings.
Has anyone else found out how to correct this problem???
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
kajunto
Has anyone figured out how to fix the problem with the wholesale prices rounding down??? for example if you put in $4.50 it will put it in at $4.00
My wholesale prices do not exhibit this behavior, nor do I recall seeing anyone else with this problem. If I put in 1.475 it comes out as 1.475. It's obviously not a problem with the mod itself.
Rob
-
Re: DUAL Pricing version 2
There have been other people with this problem.... but no one has answered the question.
I am using zen cart 1.3.7 does anyone have any clue why it is not working???
-
Re: DUAL Pricing version 2
There have been other people with this problem.... but no one has answered the question.
I am using zen cart 1.3.7 does anyone have any clue why it is not working???
I installed this mod months ago and it never worked properly.... was there an update to it???
-
Re: DUAL Pricing version 2
Well, I didn't mod the mod. So it really does work as offered, if installed as directed. (I'm using 1.3.7 too.) In other words, it's not fair to just slap a blanket "it doesn't work" label on the entire mod.
If your install was done correctly and it still doesn't work for you, then I guess there must be a conflict with something else in your Zen set up. So...
You'll need to give us more info about your set up, mods installed in particular, and a link to your site so we can have a look. Without that we're just guessing.
Rob
-
Re: DUAL Pricing version 2
Here's the mods i have installed besides dual pricing:
better categories
improved attributes controller
better together
cross sell
geotrust quick SSL
Link to the site is www.cctvimports.com
-
Re: DUAL Pricing version 2
I am not sure if I am missing something or if this is not possible. Alot of my items are priced by attribute. Yet in the attribute controller I cannot seem to figure out how to set wholesale pricing for these items. Can you dual price on a attribute level?
-
Re: DUAL Pricing version 2
Hi,
I noticed in the begining of this post, that theres no way to enter the wholesale price to be entered in %. I was wondering tho, if the feature has been added through out this post?
Jernej
-
wholesale prices not displaying.
I'm working in 1.3.7, and installed dual pricing, without any problem that I can tell. I did get a few errors in function_prices.php that I had to comment out (it was already doing things like getting prices, etc in another file).
I can assign wholesale bands to customers, and I've assigned wholesale pricing to the products, however the customers aren't seeing the wholesale pricing, even though they are assigned the correct band (1) and are approved.
it does say next to my categories (I SHOULD use zen_get_discount_calc).
any ideas? making me nutty.
-
Re: DUAL Pricing version 2
in attempt to fix problem, I went ahead and reinstalled dual pricing. same thing happens.
i get:
Fatal error: Cannot redeclare zen_update_products_price_sorter() (previously declared in zencart/admin/includes/functions/general.php:2512) in zencart/admin/includes/functions/functions_prices.php on line 1448
and after I go ahead and comment it out in either functions_price or general, I get the same fatal error on zen_parse_salemaker_categories and zen_update_salemaker_product_prices
if I comment out all three on either file, i'll be able to log back in, but i STILL have the 'wholesale prices not showing for wholesale customers" thing happening.
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
hzp
in attempt to fix problem, I went ahead and reinstalled dual pricing. same thing happens.
i get:
Fatal error: Cannot redeclare zen_update_products_price_sorter() (previously declared in zencart/admin/includes/functions/general.php:2512) in zencart/admin/includes/functions/functions_prices.php on line 1448
and after I go ahead and comment it out in either functions_price or general, I get the same fatal error on zen_parse_salemaker_categories and zen_update_salemaker_product_prices
if I comment out all three on either file, i'll be able to log back in, but i STILL have the 'wholesale prices not showing for wholesale customers" thing happening.
I had the same problem in functions_prices and used winmerge to merge the files together instead of overwriting the entire file. I seem to recall that there is a /* in one file that wasn't in the other and when I addes that /* it made the difference. I don't think you can comment out all 3 or it won't work, perhaps that's why you can't see it on the customer side. Also, when you add the wholesale price in the catalog product listing make sure you can see it in the catagories/products page after updating. I was having a problem with the wholesale prices not sticking after updating and found that there was one line of code that hadn't been added in collect_info.
Matt
-
Discount Pricing Group NOT replaced by dual pricing
Hi, Previously I used group pricing.
Deleted all group pricing customers and entries and installed dual_pricing_1_3_beta , after that and _1_3_7. Also did the .sql uploading part. However the Discount Pricing Group under add/edit customer is still there and there's no additional field under email to choose 0, 1 etc from.
I'm able to insert wholesale prices when setting up a product.
Hence, I cannot assign customers to wholesale.
I went through the whole thread but seems I'm the first to encounter this.
Anyone know what to do?
Tks Michel Oo
-
Re: DUAL Pricing version 2
You use the discount pricing groups to assign customers to the wholesale pricing. So you will need to create a discount pricing group. This will group 1. When you assign customers to this group, they will be able to see the wholesale prices. All other customers will see the regular prices. You can create additional discount pricing groups, for which you will need to create additional wholesale pricing for. You would do this by adding another price in the wholesale price field when adding/editing a product.
Someone will correct me if I am worng, but you can add multiple wholesale prices by seperating them with a comma.
Let's say you have the following discount pricing groups...
wholesale, club members, friends
In the wholesale field when adding a product you would put...
5.00,4.00,3.00
$5 would be for wholesale
$4 would be for club members
$3 would be for friends
Then you assign the customer to the appropriate discount group, which must be done manually. When each customer logs in, they see the discount price for the group they were assigned.
I will double check the information I have to make sure this is how it is to be set up, but if I am worng, somebody please correct me ;)
Edit: I did double check my notes and this is how it says to add multiple discount groups. I will play around with it in my own shop and let you know how it turns out. I have been wanting to add a wholesale group anyway (I currently only offer discounts for club members).
-
Re: DUAL Pricing version 2
Ok - I'm retarded (lol). To set multiple discount prices, enter them like so...
5.00-4.00-3.00
To assign a wholesale price group to a customer, edit their information. There is a box there where you can enter a number for which wholesale price group they belong to.
1 = the first price group ($5 in example above)
2 = secong price group ($4 in example above)
etc.
I am using the discount pricing as a guide to remind me which group is which. So I went into discount pricing and set up group one as Club Members. I entered the discount at 1% just to remind me that if I put a 1 in the wholesale discount group box for the customer, I am putting that person in the club discount group.
-
DUAL Pricing v. 2 problem
I installed the module, everything is in the right place, installed the SQL patches,
but i don't see the following (mentioned in the Read Me file):
Pick a customer and edit them.
You will see a new text box under the email address box.
I don't have this (a box under the email address.)
Any ideas what I've done wrong?
Was I supposed to install the earlier versions first and then add V.2?
PS: I'm not using group pricing.
-
Re: DUAL Pricing v. 2 problem
Ok, i figured out what I had done wrong. Now i do see that box and it works fine!
Question:
1. How do I set separate quantity & order "minimums" for wholesale & retail?
For instance, wholesale buyers would have to buy 3/ea. of a certain product, whereas retail customers can just order 1.
2. Also, i need to set the order minimums as well (ie: $150 for wholesale, $25 for retail.)
Is there a way to do these 2 things...??
Many thanks in advance,
AW
Quote:
Originally Posted by
bluealice
I installed the module, everything is in the right place, installed the SQL patches,
but i don't see the following (mentioned in the Read Me file):
Pick a customer and edit them.
You will see a new text box under the email address box.
I don't have this (a box under the email address.)
Any ideas what I've done wrong?
Was I supposed to install the earlier versions first and then add V.2?
PS: I'm not using group pricing.
-
Re: DUAL Pricing version 1.3.0.2
I'm just trying this contribution out to implement on our site. It seems to work just fine when the price is given in the product page.
But MOST our products are priced bye the attributes only and have a base price of 0.00.
Now, i used the syntax 30.00-20.00 for the products w/o the attributes and that works great. but if i use the same syntax in the attributes "trade"-field it does NOT work. it ONLY applies the first group even the costomer has group 2.
what is the syntax to use in the atribute pricing.
-
Re: DUAL Pricing version 2
just found the solution...
If your using this contribution and have product priced by both, product and attribute, use this syntax:
for price band in create/edit product: 50.00-30.00-0.00-25.00
for price band in the "tade" field in Attributes Controller: 50.00,30.00,0.00,25.00
:smartalec:
-
Re: DUAL Pricing version 2
Question, I issue a lot of discount coupon codes, if using this contribution, is there some way to not allow customers with wholesale pricing not to use those discount codes?
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
tj1
Question, I issue a lot of discount coupon codes, if using this contribution, is there some way to not allow customers with wholesale pricing not to use those discount codes?
Im wondering this too. I need to make a coupon for free shipping over $99, but i dont want my wholesale customers to be able to use it.
any ideas?
-
DUAL Pricing version 2 images
i have this great mod running but i have one problem.
I have added some code to distplay the product image in the order email.
The order email from the mail site displays the images OK.
The order email for the second site puts a / in front of the image path.
<img src=/http://www.agents.crochetta.com.au/images/
Does anyone have an idea where that might be coming from?
Cheers M
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
wittymom
ChromeOrange,
You said that there was a way to display both prices for those who were set at the wholesale price. Any movement on that front?
Thank you for this mod, by the way, you saved my bacon in a big way!! :)
Amber
This has been asked a few times by a few users. No one will answer it. I need to do the same thing. http://www.zen-cart.com/forum/showthread.php?t=79857
-
Re: DUAL Pricing version 2
No one? I'm willing to pay for it. I think it's too bad that it's not an automatic feature. Many have asked for it.
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
blakemiller
No one? I'm willing to pay for it. I think it's too bad that it's not an automatic feature. Many have asked for it.
Have a look at this post
http://www.zen-cart.com/forum/showpo...3&postcount=65
make sure you properly comment your code or save a backup of the files you edit.
let me know.
-
Re: DUAL Pricing version 2
hey not sure if this is a repost but I just had an issue w/ a site that had the dual pricing added after the site had been running for a while, and not all the products had been given whole sale pricong and there for had a database value of '' (not null but just empty.) this Meant that all those itmes came up as $0 for people w/ whole sale access. To correct this I simply ran the below SQL in the zen cart sql paches program.
Code:
UPDATE products SET products_price_w = 0 WHERE products_price_w = ''
-
Re: DUAL Pricing version 2
I have a customer who wants to be able to put his wholesale pricing on sale/discounted etc.
I've already gotten the admin and db ready with salemaker but need to put the correct coding into the functions_pricing.php and though I've found the correct section, I need a bit of help. Would you be able to help out with this?
-
Re: DUAL Pricing version 2
If I understand correctly how this Mod works, once installed and on the Edit/New Product page, I should see an input box for Wholesale pricing.
I only see:
Tax Class:
Products Price (Net):
Products Price (Gross):
Not using EasyPopulate, I have tried both versions of this Mod; 1.3 for without EP and 1_3-beta3 for with EP but none seem to work.
The db update worked correctly, I do see a new text box under the email address box for a Customer and I also see "Retail/Wholesale" on the Catagory / Products page.
Zen Cart is v1.3.7. Can anyone help determine where the problem could be or what I'm doing wrong?
-
Re: DUAL Pricing version 2
Yep, Wholesale Price (Net) should be right under those three.
Have you made any other mods which affect that page in admin? I suspect that's where the problem lies.
Rob
-
Re: DUAL Pricing version 2
That's the confusing part. The only Mod installed on this site is the Magic SEO URL for Zen Cart and the customized Minimum Order solution.
Can you specify what Dual Price file I could look at to determine / solve the problem?
-
Re: DUAL Pricing version 2
Also, if it makes any difference, no Products are priced by attributes and no Products are linked. Not using Group Pricing either although, previous posts in this thread almost makes it sound like one should. :blink:
-
Re: DUAL Pricing version 2
In my install of DP (I'm using 1.3 beta 3 in Zen 1.3.7) the file which gathers up the info and displays it is ...
admin/includes/modules/product/collect_info.php
...around line 337.
I've never used Group Pricing, nor am I using either of the other mods you've installed. I have several other mods installed but still DP works fine for me.
HTH
Rob
-
Re: DUAL Pricing version 2
Rob, appreciate the feedback and need to ask;
Are you using Easy Populate and, if yes, did you use EP to include Wholesale prices (downloading / uploading a spreedsheet) or do you see an entry for Wholesale pricing on the Edit/Add Product page and used that?
-
Re: DUAL Pricing version 2
I must be getting old -- I actually can't remember how I updated all the products to have the dual priciing. I certainly didn't do it one by one in admin ( :wacko: ) though I do have the field available to do it if I had to.
Yes I do have EP installed, and I guess that's what I used, but put me on a rack and I couldn't swear to it.
Rob
-
Re: DUAL Pricing version 2
The situation seems to be getting weirder by the moment. :shocking:
I have confirmed the "admin/includes/modules/product/collect_info.php" file and path are correct, file is there with required Wholesale information. I even went so far as to delete the "collect_info.php" file and the Edit/Add Product page still worked and no errors anywhere. Most odd!
Looks like I'll have to follow the logic path from the start, to find where & what file is not doing what it is supposed to for this Mod.
-
Re: DUAL Pricing version 2
Did you rename the admin folder to a different name as suggested for improved security?
I did and after that tried to install the DPmod and it took me 3 day to find out that I was editing the correct file but in the wrong folder.
-
Re: DUAL Pricing version 2
Did anybody got this module working with the Canadapost module together? Even if I try to use winmerge to merge these to work together, I still have problems. One is overwriting the changes the other makes - so it is really hard to implement these two together.
If anybody has any suggestions please let me know.
Thanks.
Ox.
-
Re: DUAL Pricing version - updated for 1.3.8
I have just uploaded an updated version for Zen Cart 1.3.8 for those of you who are interested.
-
Re: DUAL Pricing version - updated for 1.3.8
Quote:
Originally Posted by
delia
I have just uploaded an updated version for Zen Cart 1.3.8 for those of you who are interested.
Has anyone still got the version for 1.3.7?
-
Re: DUAL Pricing version 2
all versions are still in that sections
-
Re: DUAL Pricing version - updated for 1.3.8
Quote:
Originally Posted by
delia
I have just uploaded an updated version for Zen Cart 1.3.8 for those of you who are interested.
Just to let you know, the version you have uploaded also seems to include additions for the Checkout Without Account addon, which will cause problems for people that don't use that addon.
Thanks.
-
Re: DUAL Pricing version 2
Hey buriko... the last update has be done by me... the other update for 1.3.8 was based on code for zen version 1.3.0 to 1.3.5... i only put the needed code into the files for 1.3.8
This was only the second time that i uploaded a contibution... thanks to point out that i left the cowoa in there. but it should be fairly easy to delete the cowoa part since - if i remember right - the are all pretty obious marked...
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
stevefriedman71
i left the cowoa in there. but it should be fairly easy to delete the cowoa part since - if i remember right - the are all pretty obious marked...
Im getting this error after uploading DUAL mod to a new install of zen. What should i be deleting and where?
Thanks!
-
Re: DUAL Pricing version 2
in the version I uploaded I simply compared the files and added the code for 1.3.8 - I don't know what Steve is talking about. I used that version to update a 1.3.8 cart - no problems and there's nothing extra in there. If there are extra files in my version and I don't believe there are, the cart still works. So if you have a problem with his version - use mine!
-
Re: DUAL Pricing version 2
Delia and Steve,
Thank you so much for updating this. You are absolute life savers!!!!!!! (p.s. I'm glad the COWOA is in there - you saved me from the extra work)
:clap:
-
Re: DUAL Pricing version 2
I have seen others have had this problem but I can't seem to find a solution. The mod seems to be working fine. When logged in as a wholesale account the prices are changed. The problem is that when I continue to the shopping cart the price reverts back to the Retail Price. HELP!!!!
Thanks
E
-
Re: DUAL Pricing version 2
(SEE PREVIOUS POST)
I would like to let anyone who is having this problem it only happened on my testing server. I decided since it wasn't detrimental to the site to try this live before trying more trouble shooting, I uploaded to my live store and sure enough it's working with no problems.
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
madfastride
(SEE PREVIOUS POST)
I would like to let anyone who is having this problem it only happened on my testing server. I decided since it wasn't detrimental to the site to try this live before trying more trouble shooting, I uploaded to my live store and sure enough it's working with no problems.
Having fixed the error Attribute error 1136 I am also getting the retail price being displayed in the cart rather than the w/s price. I have been through the thread and although some peeps have had a similar problem no "fixes" have been posted. Does anyone know whether it has been fixed? and if so what was it?
Thanks
-
Re: DUAL Pricing version 2
Madfastride....
Do you know what difference there is between your testing server and the live server? This may throw some light on to why it is happening to some of us. Thanks for your help.
Quote:
Originally Posted by
madfastride
(SEE PREVIOUS POST)
I would like to let anyone who is having this problem it only happened on my testing server. I decided since it wasn't detrimental to the site to try this live before trying more trouble shooting, I uploaded to my live store and sure enough it's working with no problems.
-
Re: DUAL Pricing version 2
getting this error when adding a new attribute:
Quote:
1136 Column count doesn't match value count at row 1
in:
[insert into products_attributes (products_attributes_id, products_id, options_id, options_values_id, options_values_price, price_prefix, products_options_sort_order, product_attribute_is_free, products_attributes_weight, products_attributes_weight_prefix, attributes_display_only, attributes_default, attributes_discounted, attributes_image, attributes_price_base_included, attributes_price_onetime, attributes_price_factor, attributes_price_factor_offset, attributes_price_factor_onetime, attributes_price_factor_onetime_offset, attributes_qty_prices, attributes_qty_prices_onetime, attributes_price_words, attributes_price_words_free, attributes_price_letters, attributes_price_letters_free, attributes_required) values (0, '599', '6', '952', '0', '0', '', '0', '0', '0', '', '0', '0', '0', '', '0', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '0', '0')]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
any ideas how it is fixed?
-
Re: DUAL Pricing version 2
To fix the 1136 error when adding attributes, try this:
in admin/attributes_controller.php, add options_values_price_w to the list, as shown below:
$db->Execute("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " (products_attributes_id, products_id, options_id, options_values_id, options_values_price, options_values_price_w, price_prefix, products_options_sort_order, product_attribute_is_free, products_attributes_weight, products_attributes_weight_prefix, attributes_display_only, attributes_default, attributes_discounted, attributes_image, attributes_price_base_included, attributes_price_onetime, attributes_price_factor, attributes_price_factor_offset, attributes_price_factor_onetime, attributes_price_factor_onetime_offset, attributes_qty_prices, attributes_qty_prices_onetime, attributes_price_words, attributes_price_words_free, attributes_price_letters, attributes_price_letters_free, attributes_required)
You should backup this file because it will be overwritten during an upgrade. This information should probably be added to the download as well.
-
Re: DUAL Pricing version 2
Wow craftzombie you are a star! That fixed it for me and I am very thankful to you.
Cheers
Heathenmagic:smile:
-
Re: DUAL Pricing version 2
Hi,
Can somebody please help me.
When i click on the Customers Page in admin is get this error.
Customers Search:
ID# Last Name
Asc Desc First Name
Asc Desc Company
Asc Desc Account Created
Asc Desc Last Login
Asc Desc Pricing Group
Asc Desc TABLE_HEADING_GV_AMOUNT
Asc Desc Authorized
Asc Desc Action TABLE_HEADING_COWOA
Asc Desc Action
1054 Unknown column 'c.COWOA_account' in 'field list'
in:
[select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_pricing, a.entry_country_id, a.entry_company, ci.customers_info_date_of_last_logon, ci.customers_info_date_account_created , c.customers_telephone, a.entry_company, a.entry_street_address, a.entry_city, a.entry_postcode, c.customers_authorization, c.customers_referral, c.COWOA_account from customers c left join customers_info ci on c.customers_id= ci.customers_info_id left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id order by ci.customers_info_date_account_created DESC limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
This happened after i installed this addon.
-
Re: DUAL Pricing version 2
did you process your sql patch from the dual pricing folder?
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
jaskarn
Hi,
Can somebody please help me.
When i click on the Customers Page in admin is get this error.
Customers Search:
ID# Last Name
Asc Desc First Name
Asc Desc Company
Asc Desc Account Created
Asc Desc Last Login
Asc Desc Pricing Group
Asc Desc TABLE_HEADING_GV_AMOUNT
Asc Desc Authorized
Asc Desc Action TABLE_HEADING_COWOA
Asc Desc Action
1054 Unknown column 'c.COWOA_account' in 'field list'
in:
[select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_pricing, a.entry_country_id, a.entry_company, ci.customers_info_date_of_last_logon, ci.customers_info_date_account_created , c.customers_telephone, a.entry_company, a.entry_street_address, a.entry_city, a.entry_postcode, c.customers_authorization, c.customers_referral, c.COWOA_account from customers c left join customers_info ci on c.customers_id= ci.customers_info_id left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id order by ci.customers_info_date_account_created DESC limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
This happened after i installed this addon.
Someone who updated this mod also uses the Checkout Without Account (COWOA) mod and left the code in there, probably thinking it wouldn't hurt the functionality of the Dual Pricing mod (???). I probably would've left it in there too. I went through the customers.php file and hopefully removed all of the cowoa code. You can download that version of the file here:
customers.zip
Install it into your admin folder and then click on your customers and see what happens. Let me know....
-
Re: DUAL Pricing version 2
Hi everyone,
thank you for your efforts and help.
1. I did proccess the patch by going to Zencart Admin and pasting the complete file provided.
2. I tried the file without the COWOA supplied but now it gives me this error:
Fatal error: Call to undefined function: zen_get_customers_address_book() in /home/pjdhatt/public_html/dgtech/admin/customers.php on line 1137
Looks like we are hopefully getting closer. Please advise :yes:
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
jaskarn
Hi everyone,
thank you for your efforts and help.
1. I did proccess the patch by going to Zencart Admin and pasting the complete file provided.
2. I tried the file without the COWOA supplied but now it gives me this error:
Fatal error: Call to undefined function: zen_get_customers_address_book() in /home/pjdhatt/public_html/dgtech/admin/customers.php on line 1137
Looks like we are hopefully getting closer. Please advise :yes:
Sorry about that. I couldn't test it properly at the time because my test site was 1.3.7. I just upgraded it and tested the file and of course, I made a mistake. I fixed it and tested it and it seems to be working now. Download the customer zip file again and upload it to your admin folder. Let me know what happens.
-
Re: DUAL Pricing version 2
Hi craftzombie,
I downloaded the file from the link in your last post and tried it but still i get the same error:
Fatal error: Call to undefined function: zen_get_customers_address_book() in /home/pjdhatt/public_html/dgtech/admin/customers.php on line 1146
When i deleted line 1146, it worked but the formatting was all wrong, i guess there is something wrong with bringing up the address book.
Please HELP!
Thanks.
Jaskarn
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
jaskarn
Hi craftzombie,
I downloaded the file from the link in your last post and tried it but still i get the same error:
Fatal error: Call to undefined function: zen_get_customers_address_book() in /home/pjdhatt/public_html/dgtech/admin/customers.php on line 1146
When i deleted line 1146, it worked but the formatting was all wrong, i guess there is something wrong with bringing up the address book.
Please HELP!
Thanks.
Jaskarn
I have a test cart installed with no other mods on it but Dual Pricing and I am not getting any errors with this new customers.php file. What mods do you have installed?
-
Re: DUAL Pricing version 2
Hi again,
i have easy populate installed, sales_report_rev104, and aquick_price_search. From what i think the zen_address get thing function could have been renamed, could this be another file inlcuded in dual pricing mod download that would have changed it.
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
jaskarn
Hi again,
i have easy populate installed, sales_report_rev104, and aquick_price_search. From what i think the zen_address get thing function could have been renamed, could this be another file inlcuded in dual pricing mod download that would have changed it.
Just to clarify, the newest version of Dual Pricing is for 1.3.8. I noticed the download for the 1.3.7 version does not contain an easypopulate.php file, but the 1.3.6 and 1.3.8 versions do. I'm not sure what happened there. I do not use Easy Populate. If anyone is running into problems and you use Easy Populate with this mod, make sure your versions match.
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
agamic
Having fixed the error Attribute error 1136 I am also getting the retail price being displayed in the cart rather than the w/s price. I have been through the thread and although some peeps have had a similar problem no "fixes" have been posted. Does anyone know whether it has been fixed? and if so what was it?
Thanks
Anyone have any ideas for this problem?
Thanks
-
Re: DUAL Pricing version 2
I don't have any specific solution to the problems people are having but I had many of them too when I downloaded the module and copy and pasted the files into my cart (using the newest version of the module and 1.3.8) Next I tried a different rout and used WinMerge instead. And compared files and made sure things were right. If anybody is partial to this I could upload my files and have people try those instead as they contain the Cowoa (sorry this is from memory can't remember if that's actually the name) fix and a fix for displaying "whole sale price" when the customer is actually seeing retail price.
-
Re: DUAL Pricing version 2
For a clean installing dual pricing, use the one by Delia. It does not give errors on a fresh, no module installation.
In my opinion, this is how a module should be.
I think the one by Steve should be removed or have a note by it. It has extra code from the checkout without account. If you are not running this module, you will crash your customers table.
REMEMBER, always do a backup before installing any module. In this case, my backup saved me a lot of time!
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
madfastride
I don't have any specific solution to the problems people are having but I had many of them too when I downloaded the module and copy and pasted the files into my cart (using the newest version of the module and 1.3.8) Next I tried a different rout and used WinMerge instead. And compared files and made sure things were right. If anybody is partial to this I could upload my files and have people try those instead as they contain the Cowoa (sorry this is from memory can't remember if that's actually the name) fix and a fix for displaying "whole sale price" when the customer is actually seeing retail price.
Hi madfastride.
I have PM you but I would also like a peek at your files to compare mine as I am still getting the retail price showing through checkout rather than the wholesale price on products that are priced by attribute. I have done a compare on the release files and my uploaded files and they are the same. So I am now at a loss.
Thanks
-
Re: DUAL Pricing version 2
Anybody have a link for where to download this?
-lindasdd
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
lindasdd
Anybody have a link for where to download this?
-lindasdd
Dual Pricing mod
-
Re: DUAL Pricing version 2
I have had some PMs so here we go...
I have cleaned up the files and made a few modifications. Specifically the original displayed "Whole Sale" when it should have displayed "Retail" and several other issues. The following link is to my files. Please download and try these instead. I'd like to post them as a new version of this modification but would like more testing. Specifically with the attributes activated on whole sale items. If I get enough positive feed back I will post this as a new version. PLEASE DO NOT CONTACT ME WITH PROBLEMS IF YOU ARE NOT USING 1.3.8 UNLESS YOU WANT TO PAY ME TO UPGRADE YOU FIRST... Break this rule and you will be immediately blocked from my email account.
www.pushingbuttonsaz.com/dual_pricing_PB.zip
Thanks,
Emiliano Jordan
emilianosemail "at" gmail "dot" com
-
Re: DUAL Pricing version 2
Oops, your link was a little funky... here's the correct one:
www.pushingbuttonsaz.com/dual_pricing_PB.zip
-
Re: DUAL Pricing version 2
My bad... sorry to all...
All you guys that have downloaded my mod seem to have had issues with the Cowoa-mod pieces in there. please accept my appology. it was the first mod-update i puit back to the download section. I do have Cowoa installed on my side so i didn't got any error and didn't think of taking it out when i updated it... :frusty:
But, the good news... Cowoa is a pretty good and ovious mod and pretty easy to spot.
Please delete the folowing sections in YOUR_ADMIN/customers.php
line 348
Quote:
// COWOA additional field included in this select statement
line 356
line 517 to line 536
Quote:
<?php
// COWOA add new frameset here to display account status when looking at a customer detail record
?>
<tr>
<td class="formAreaTitle"><?php echo COWOA_SECTION_HEADING; ?></td>
</tr>
<tr>
<td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main"><?php if ($cInfo->COWOA_account) echo COWOA_STATUS_TRUE; else echo COWOA_STATUS_FALSE; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<?php
// END OF COWOA new frameset
?>
line 1012 to line 1019
Quote:
// COWOA+
case "COWOA-asc":
$disp_order = "c.COWOA_account";
break;
case "COWOA-desc":
$disp_order = "c.COWOA_account DESC";
break;
// COWOA+
line 1077 to line 1085
Quote:
<!-- COWOA+ additional column heading in list of customers -->
<td class="dataTableHeadingContent" align="center">
<?php echo (($_GET['list_order']=='COWOA-asc' or $_GET['list_order']=='COWOA-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_COWOA . '</span>' : TABLE_HEADING_COWOA); ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=COWOA-asc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='COWOA-asc' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=COWOA-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='COWOA-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
<!-- COWOA+ -->
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td>
line 1102 to line 1105
Quote:
// COWOA+ additional field added
$new_fields=', c.customers_telephone, a.entry_company, a.entry_street_address, a.entry_city, a.entry_postcode, c.customers_authorization, c.customers_referral, c.COWOA_account';
// COWOA+ additional field added
$customers_query_raw = "select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_pricing, a.entry_country_id, a.entry_company, ci.customers_info_date_of_last_logon, ci.customers_info_date_account_created " . $new_fields . " from " . TABLE_CUSTOMERS . " c left join " . TABLE_CUSTOMERS_INFO . " ci on c.customers_id= ci.customers_info_id left join " . TABLE_ADDRESS_BOOK . " a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id " . $search . " order by $disp_order";
line 1189 to line 1192
Quote:
<td class="dataTableContent" align="center"><?php echo ($customers->fields['customers_authorization'] == 0 ? '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'action=status¤t=' . $customers->fields['customers_authorization'] . '&cID=' . $customers->fields['customers_id'] . ($_GET['page'] > 0 ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_green_on.gif', IMAGE_ICON_STATUS_ON) . '</a>' : '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'action=status¤t=' . $customers->fields['customers_authorization'] . '&cID=' . $customers->fields['customers_id'] . ($_GET['page'] > 0 ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_red_on.gif', IMAGE_ICON_STATUS_OFF) . '</a>'); ?></td>
<!-- COWOA+ additional field in table -->
<td class="dataTableContent" align="center"><?php if ($customers->fields['COWOA_account']) echo 'X'; ?></td>
<!-- COWOA+ -->
This SHOULD take care of the problems if you don't have cowoa installed.
Again, PLEASE accept my apologies.
-
Re: DUAL Pricing version 2
I hope this question hasn't been asked to death - but I can't find it if it has.
I've installed this mod and it works fine. However, when we put something on sale through SaleMaker or Specials, we don't want it to apply the discount to wholesale customers.
I thought I had this solved in that I created a Discount Group called "Wholesale" with a 0% discount but it isn't working. I also used this method to exclude wholesale customers from getting charged sales tax, but again, this isn't working.
It it my install (I didn't do it - it came with the site)? Is there some other way to exclude wholesale customers from getting sale prices?
Thanks,
Janelle
-
Re: DUAL Pricing version 2
I have a problem were products with attributes are going into the shopping cart with the base price not attached. I have set my attributes to add to the base price. This is happening to both resale and wholesale pricing.
Any ideas on why this maybe happening. I need to get this resolved fairly quickly.
The url is http://www.safewireless.com/hands-free-store/
-
Re: DUAL Pricing version 2
I should also note that the sub-total price shows up correctly, but not per-item totals. When continuing through the check out process the per-item price (which is wrong) is being calculated for the total to be billed.
-
Re: DUAL Pricing version 2
Hi,
Great contribution, working nicely on 1.3.5! Spent the day playing around with it. I recommend the combined use of the contribution : quick_updates_2.04
So you can quickly add all of your wholesale prices. The Quick Updates mod has a feature that works with DP built into it (has to be activated manualy in the following file :
admin/includes/extra_configures/quick_updates.php
)
Quick question, is there a way I can define products that can only be seen by wholesalers (by ticking a nice little box maybe in product edit page!) ?
I've read through nearly every post about DP here (took a few hours), but I may have missed something about this, it does get to your head reading through so many pages of DP ;-)
Thanks everyone for all of your DP posts...
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
janellez
I hope this question hasn't been asked to death - but I can't find it if it has.
I've installed this mod and it works fine. However, when we put something on sale through SaleMaker or Specials, we don't want it to apply the discount to wholesale customers.
I thought I had this solved in that I created a Discount Group called "Wholesale" with a 0% discount but it isn't working. I also used this method to exclude wholesale customers from getting charged sales tax, but again, this isn't working.
It it my install (I didn't do it - it came with the site)? Is there some other way to exclude wholesale customers from getting sale prices?
Thanks,
Janelle
I'm finding myself with the same trouble right now, I believe there is a line we can add to functions_prices.php to basically drop out of the sale function if the customer is wholesale but I haven't been able to do it yet.
Post back if you figured it out already, or I'll post a fix sometime later today hopefully.
-
Re: DUAL Pricing version 2
did anyone, yet, came up with a possibility to dis-allow the discounts for wholesale customers? really seems an issue and a should be adresses soon in this mod. i would LOVE it.
-
Re: DUAL Pricing version 2
Was hoping someone could help me. I would like to "unpatch" my database or undo the changes from this mod. I was unable to really make it work do to sdales being taken off pricing. When I bumped up to 1.3.8 I did not reinstall this mod as I did not plan to use it but now I am having probs with my attributes and creating new ones I get this
1136 Column count doesn't match value count at row 1
in:
[insert into products_attributes values (0, '607', '20', '145', '0', '+', '0', '1', '0', '+', '0', '0', '1', '', '1', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '0', '0')]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
From a little reading I found that this is likely caused by his mod or the remanents of it so to speak. I tried editing the general.php adding the -
'" . $products_copy_from->fields['options_values_price_w'] . "',
options_values_price_w='" . $products_copy_from->fields['options_values_price_w'] . "',
thinking it might be a work around but no go. I also tried uploading all the files from the Dual Pricing from 1.3.8 and the error only got "worse".
Am hoping if I undo what was done to the DB it would be wiped?
thanks for any help!!!
-
Re: DUAL Pricing version 2
I fixed my above question. I just dropped the 3 tables in the DB that the mod adds..... all works well now it seems
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
stevefriedman71
did anyone, yet, came up with a possibility to dis-allow the discounts for wholesale customers? really seems an issue and a should be adresses soon in this mod. i would LOVE it.
Steve,
I paid "That Software Guy", Scott Wilson, to write this for one of my sites. It might be worth contacting him. PM me if you need his contact information.
Janelle
-
Re: DUAL Pricing version 2
****MAKE SURE NOT TO MAKE THIS MISTAKE****
I don't know if anyone else has had problems with this but on my cart I noticed that when you add the number to a product to determine it's price level (example you put a zero if there is no whole sale etc) MAKE SURE THERE IS A NUMBER IN THAT FIELD... If it is left blank it seems that the product can go for FREE... :(
-
Re: DUAL Pricing version 2
I sell a product on my site with two different costs.. the wholesale price and the retail price.
Can someone lead me in the right direction or link that shows how I can have an area for each?
I have seen it on other sites (don't know if zen) and I would like to do it as well but not a clue as to how to do it.
Any help appreciated.
Sandy
-
Re: DUAL Pricing version 2
Quote:
Can someone lead me in the right direction or link that shows how I can have an area for each?
The mod is located at
http://www.zen-cart.com/index.php?ma...roducts_id=166
Consult this forum for any snags in the install.
-
Re: DUAL Pricing version 2
hello! need help!
dual pricing mod works for me. i've edited customer set to level 2 and added 2 levels for wholesale pricing by attributes: 30,25
the prices is correctly displayed in product info: 25 but it displays 30 in shopping cart. my /includes/classes/shopping_cart.php was already modified before dual pricing was installed.
anyone can help me what are the specific files and/or lines edited just like how COWOA being installed. thankz a lot!
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
adoy
hello! need help!
dual pricing mod works for me. i've edited customer set to level 2 and added 2 levels for wholesale pricing by attributes: 30,25
the prices is correctly displayed in product info: 25 but it displays 30 in shopping cart. my /includes/classes/shopping_cart.php was already modified before dual pricing was installed.
anyone can help me what are the specific files and/or lines edited just like how COWOA being installed. thankz a lot!
i manage to merge dual pricing codes to my existing files using WinMerge... but it's still the same. the wholesale price doesn't show in shopping cart. but it properly working in product info.
pls help
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
adoy
hello! need help!
dual pricing mod works for me. i've edited customer set to level 2 and added 2 levels for wholesale pricing by attributes: 30,25
the prices is correctly displayed in product info: 25 but it displays 30 in shopping cart. my /includes/classes/shopping_cart.php was already modified before dual pricing was installed.
anyone can help me what are the specific files and/or lines edited just like how COWOA being installed. thankz a lot!
I believe, with the newest version of this mod, you have to have your wholesale prices set up like this: 1.00-2.00-3.00-4.00 instead of 1.00,2.00,3.00,4.00. I remember when I updated to the new version, I had to change all of my products to the style with the dashes and then it worked. Hopefully it works for you because I have no other solutions!! :smile:
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
craftzombie
I believe, with the newest version of this mod, you have to have your wholesale prices set up like this: 1.00-2.00-3.00-4.00 instead of 1.00,2.00,3.00,4.00. I remember when I updated to the new version, I had to change all of my products to the style with the dashes and then it worked. Hopefully it works for you because I have no other solutions!! :smile:
Im using the latest mod version ( http://www.zen-cart.com/index.php?ma...roducts_id=166 )
using 1.00-2.00-3.00-4.00 in the attribute won't display the price
my setup is like this:
Wholesale pricing level: 2
Product is priced by attributes
Retail/Wholesale: 0.0000 / 0.00-0.00-0.00-0.00
Attribute 1: Prefix Price: 395.00
Prefix Wholesale: 0.00,296.25,0.00,0.00
The attribute price is added to the base price (0.00)
On the product info page, Wholesale price (296.25) of the attribute is correctly displayed. But when added to cart, it displays the prefix price (395.00)...
Please help. thankz!
Note: The wholesale pricing is properly working when the product is NOT priced by attributes.
-
Re: DUAL Pricing version 2
I just installed this mod today (love it, thank you!) but I have run accross something. I have the Rewards Points Module installed as well (found here: http://www.zen-cart.com/index.php?ma...roducts_id=911) and it seems that a customer who is logged in as a wholesale customer will be getting points based on the retail price of the product, rather than the discounted wholesale price.
So this is resulting in an overpayment of rewards points to my wholesale customers. I do want them to be able to earn the points, but I need those points based on the wholesale price.
I do not know coding. Is there an easy fix for this that anyone can think of? Or am I just going to have to decide between the two mods? I am charging my wholesale customers a monthly fee to have access to wholesale pricing, so I guess as a last resort I can up that fee a little to cover the extra points they will be earning.. but I'd hate to do that!
Any ideas would be greatly appreciated. Thank you!!!
-
Re: DUAL Pricing version 2
@ Adoy :
I have a copy of this running on my test cart and the problem you are describing is not happening for me. What version of Zen cart are you using? As you said it might be the previously modified shopping cart page. Did you use WinMerge to merge them? if you could post a copy of your old shopping cart page that might be helpful.
@ lilshopofsecrets :
There will be some code that needs to be modified within the pages of your RP module. Basically it will check to see if a customer is WS and produce the right price for that customer based on the WS price. If you can wait a couple days I can look into this for you but right now I can't provide anymore help since I haven't worked with that module before. But you shouldn't have to worry as it should be possible.
-
Re: DUAL Pricing version 2
I was wondering if theres a sql query or something that can be run to change one of the wholesale pricing levels
I wish to charge 5% less on one of my wholesale levels.
Is this possible or am i gonna have to edit all my producst one by one
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
CnTGifts
I was wondering if theres a sql query or something that can be run to change one of the wholesale pricing levels
I wish to charge 5% less on one of my wholesale levels.
Is this possible or am i gonna have to edit all my producst one by one
I had to change 2000 products once. I used the Quick Updates mod. It took longer than a sql trick (which I didn't and still don't know how to do) and was faster than doing it one at a time.
-
Re: DUAL Pricing version 2
is there a way to get that to display the wholesale level pricing too?
-
Re: DUAL Pricing version 2
found out its built into the quick updates file
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
CnTGifts
I was wondering if theres a sql query or something that can be run to change one of the wholesale pricing levels
I wish to charge 5% less on one of my wholesale levels.
Is this possible or am i gonna have to edit all my producst one by one
CnTGifts, if you haven't heard this before, please back up your DB before doing this... ;)
Next log into your PHPMyadmin and access your DataBase. Click on the tab "SQL" in the text box copy and paste this code. Modify "products" to match your prefix. Example if you used zen_ you need to modify "products" to "zen_products"
UPDATE products SET products_price_w=products_price * .95
This is assuming you've installed the SQL patch for Dual pricing already. if not do that first...
you should now be golden....
-
Re: DUAL Pricing version 2
will that do, all the wholesale levels. i currently have 2 different wholesale levels set
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
CnTGifts
found out its built into the quick updates file
Yes, and for anyone else that may need to know this:
in
admin/includes/extra_configures/quick_updates.php
find:
// change to 'true' to enable wholesale price updates
define('QUICKUPDATES_MODIFY_WHOLESALE_PRICE', 'false');
and change it to:
// change to 'true' to enable wholesale price updates
define('QUICKUPDATES_MODIFY_WHOLESALE_PRICE', 'true');
-
Re: DUAL Pricing version 2
That sql query didnt come close to working
Here is what i had in my wholesale price Retail Price 14.95 6.60-5.21
Here is what i have now 14.202500
What that did was take 5% off my retail price
-
Re: DUAL Pricing version 2
Sorry my bad that's what I thought you wanted to do... I don't know of an SQL query that would work then... But so I understand you have 14.95 6.60-5.21 and you want to modify one of the whole sale pricing levels to 95% of it's current level... You'd need a PHP script to query the DB then explode the array, modify and then SET your fields again... But it does sounds like craftzombie has a solution for you. Sorry for any inconvenience by misreading your statement.
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
madfastride
@ Adoy :
I have a copy of this running on my test cart and the problem you are describing is not happening for me. What version of Zen cart are you using? As you said it might be the previously modified shopping cart page. Did you use WinMerge to merge them? if you could post a copy of your old shopping cart page that might be helpful.
Zen Cart v1.3.8a/v1.3.8
Yes, I've used WinMerge
here's the shopping cart page after i merge the mod Product with attribute stock
Code:
Code:
<?php
/**
* shopping_cart header_php.php
*
* @package page
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: header_php.php 7171 2007-10-05 08:42:24Z drbyte $
*/
// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_SHOPPING_CART');
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE);
// Validate Cart for checkout
$_SESSION['valid_to_checkout'] = true;
$_SESSION['cart_errors'] = '';
$_SESSION['cart']->get_products(true);
if (!$_SESSION['valid_to_checkout']) {
$messageStack->add('shopping_cart', ERROR_CART_UPDATE . $_SESSION['cart_errors'] , 'caution');
}
// build shipping with Tare included
$shipping_weight = $_SESSION['cart']->show_weight();
/*
$shipping_weight = 0;
require(DIR_WS_CLASSES . 'order.php');
$order = new order;
require_once('includes/classes/http_client.php'); // shipping in basket
$total_weight = $_SESSION['cart']->show_weight();
$total_count = $_SESSION['cart']->count_contents();
require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping;
$quotes = $shipping_modules->quote();
*/
$totalsDisplay = '';
switch (true) {
case (SHOW_TOTALS_IN_CART == '1'):
$totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_WEIGHT . $shipping_weight . TEXT_PRODUCT_WEIGHT_UNIT . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
break;
case (SHOW_TOTALS_IN_CART == '2'):
$totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . ($shipping_weight > 0 ? TEXT_TOTAL_WEIGHT . $shipping_weight . TEXT_PRODUCT_WEIGHT_UNIT : '') . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
break;
case (SHOW_TOTALS_IN_CART == '3'):
$totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
break;
}
// testing/debugging
// require(DIR_WS_MODULES . 'debug_blocks/shopping_cart_contents.php');
$flagHasCartContents = ($_SESSION['cart']->count_contents() > 0);
$cartShowTotal = $currencies->format($_SESSION['cart']->show_total());
$flagAnyOutOfStock = false;
$products = $_SESSION['cart']->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
if (($i/2) == floor($i/2)) {
$rowClass="rowEven";
} else {
$rowClass="rowOdd";
}
switch (true) {
case (SHOW_SHOPPING_CART_DELETE == 1):
$buttonDelete = true;
$checkBoxDelete = false;
break;
case (SHOW_SHOPPING_CART_DELETE == 2):
$buttonDelete = false;
$checkBoxDelete = true;
break;
default:
$buttonDelete = true;
$checkBoxDelete = true;
break;
$cur_row++;
} // end switch
$attributeHiddenField = "";
$attrArray = false;
$productsName = $products[$i]['name'];
// Push all attributes information in an array
if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
if (PRODUCTS_OPTIONS_SORT_ORDER=='0') {
$options_order_by= ' ORDER BY LPAD(popt.products_options_sort_order,11,"0")';
} else {
$options_order_by= ' ORDER BY popt.products_options_name';
}
foreach ($products[$i]['attributes'] as $option => $value) {
$attributes = "SELECT popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix
FROM " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa
WHERE pa.products_id = :productsID
AND pa.options_id = :optionsID
AND pa.options_id = popt.products_options_id
AND pa.options_values_id = :optionsValuesID
AND pa.options_values_id = poval.products_options_values_id
AND popt.language_id = :languageID
AND poval.language_id = :languageID " . $options_order_by;
$attributes = $db->bindVars($attributes, ':productsID', $products[$i]['id'], 'integer');
$attributes = $db->bindVars($attributes, ':optionsID', $option, 'integer');
$attributes = $db->bindVars($attributes, ':optionsValuesID', $value, 'integer');
$attributes = $db->bindVars($attributes, ':languageID', $_SESSION['languages_id'], 'integer');
$attributes_values = $db->Execute($attributes);
//clr 030714 determine if attribute is a text attribute and assign to $attr_value temporarily
if ($value == PRODUCTS_OPTIONS_VALUES_TEXT_ID) {
$attributeHiddenField .= zen_draw_hidden_field('id[' . $products[$i]['id'] . '][' . TEXT_PREFIX . $option . ']', $products[$i]['attributes_values'][$option]);
$attr_value = $products[$i]['attributes_values'][$option];
} else {
$attributeHiddenField .= zen_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value);
$attr_value = $attributes_values->fields['products_options_values_name'];
}
$attrArray[$option]['products_options_name'] = $attributes_values->fields['products_options_name'];
$attrArray[$option]['options_values_id'] = $value;
$attrArray[$option]['products_options_values_name'] = zen_output_string_protected($attr_value) ;
$attrArray[$option]['options_values_price'] = $attributes_values->fields['options_values_price'];
$attrArray[$option]['price_prefix'] = $attributes_values->fields['price_prefix'];
}
} //end foreach [attributes]
if (STOCK_CHECK == 'true') {
$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);
if ($flagStockCheck == true) {
$flagAnyOutOfStock = true;
}
}
$linkProductsImage = zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']);
$linkProductsName = zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']);
$productsImage = (IMAGE_SHOPPING_CART_STATUS == 1 ? zen_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], IMAGE_SHOPPING_CART_WIDTH, IMAGE_SHOPPING_CART_HEIGHT) : '');
$show_products_quantity_max = zen_get_products_quantity_order_max($products[$i]['id']);
$showFixedQuantity = (($show_products_quantity_max == 1 or zen_get_products_qty_box_status($products[$i]['id']) == 0) ? true : false);
// $showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_field('products_id[]', $products[$i]['id']) . zen_draw_hidden_field('cart_quantity[]', 1);
// $showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_field('cart_quantity[]', 1);
$showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_field('cart_quantity[]', $products[$i]['quantity']);
$showMinUnits = zen_get_products_quantity_min_units_display($products[$i]['id']);
$quantityField = zen_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"');
$buttonUpdate = ((SHOW_SHOPPING_CART_UPDATE == 1 or SHOW_SHOPPING_CART_UPDATE == 3) ? zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT) : '') . zen_draw_hidden_field('products_id[]', $products[$i]['id']);
$productsPrice = $currencies->display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . ($products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->display_price($products[$i]['onetime_charges'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) : '');
$productsPriceEach = $currencies->display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) . ($products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->display_price($products[$i]['onetime_charges'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) : '');
$productArray[$i] = array('attributeHiddenField'=>$attributeHiddenField,
'flagStockCheck'=>$flagStockCheck,
'flagShowFixedQuantity'=>$showFixedQuantity,
'linkProductsImage'=>$linkProductsImage,
'linkProductsName'=>$linkProductsName,
'productsImage'=>$productsImage,
'productsName'=>$productsName,
'showFixedQuantity'=>$showFixedQuantity,
'showFixedQuantityAmount'=>$showFixedQuantityAmount,
'showMinUnits'=>$showMinUnits,
'quantityField'=>$quantityField,
'buttonUpdate'=>$buttonUpdate,
'productsPrice'=>$productsPrice,
'productsPriceEach'=>$productsPriceEach,
'rowClass'=>$rowClass,
'buttonDelete'=>$buttonDelete,
'checkBoxDelete'=>$checkBoxDelete,
'id'=>$products[$i]['id'],
'attributes'=>$attrArray);
} // end FOR loop
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_HEADER_END_SHOPPING_CART');
?>
-
Re: DUAL Pricing version 2
anybody can help with my issue please... thankz a lot!
-
Re: DUAL Pricing version 2
Code:
1054 Unknown column 'c.COWOA_account' in 'field list'
in:
[select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_pricing, a.entry_country_id, a.entry_company, ci.customers_info_date_of_last_logon, ci.customers_info_date_account_created , c.customers_telephone, a.entry_company, a.entry_street_address, a.entry_city, a.entry_postcode, c.customers_authorization, c.customers_referral, c.COWOA_account from customers c left join customers_info ci on c.customers_id= ci.customers_info_id left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id order by ci.customers_info_date_account_created DESC limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
any clue how to fix this?
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
Nuitari
Code:
1054 Unknown column 'c.COWOA_account' in 'field list'
in:
[select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_pricing, a.entry_country_id, a.entry_company, ci.customers_info_date_of_last_logon, ci.customers_info_date_account_created , c.customers_telephone, a.entry_company, a.entry_street_address, a.entry_city, a.entry_postcode, c.customers_authorization, c.customers_referral, c.COWOA_account from customers c left join customers_info ci on c.customers_id= ci.customers_info_id left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id order by ci.customers_info_date_account_created DESC limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
any clue how to fix this?
Read through this thread and find out which download does not contain the COWOA mod with it and then re-install. There are two new versions of Dual Pricing, one with the COWOA mod included. You want the one without it. I just can remember whose version does not have it. It is somewhere on this thread though.