-
Re: DUAL Pricing v2
Quote:
Originally Posted by
voltar
Here is what's happening. I add a wholesale price to a product along with 2 attributes with 4 values entered in the Trade field. On the retail side of the site, the correct wholesale price displays along with the attributes. I select an attribute and add to the cart.
In the cart, the correct wholesale price is displayed based on the wholesale level of the customer. however, the correct attribute price does not add. Only the 1st level of the wholesale attribute string is added. And here's another odd thing, the cost of the attribute is not displayed but the total shows the added attribute.
What have I missed? Thanks.
its a shopping_cart.php issue...
Try this...
Download the modded files I linked a few post back here
unzip and find includes>classes>shopping_cart.php
replace the one you currently have on your site (Make A backup first, or just rename your existing)
Everything should work then... I've been running this for a month or so with no issues
Also keep in mind the copy to category or product in attribute controller doesn't work... You have to manually assign the prices for each attribute with each product
-
Re: DUAL Pricing v2
i am not sure if this issue is the same issue voltar had but...
its taken me about a week or so to fine tune this mod without any issues. Well not the issue i am having is i have everything set up to where it shows me retail and then shows me the wholesale price. Now tier one shows the price correct. Problem is when i go in and change a customer to tier 2 pricing it shows tier ones pricing but when i add it to the cart it shows tier two pricing.
Question is..is there a way to show tier two pricing all together if they are tier two or tier three pricing if they are tier three on the product page as well? Ill keep on going through the pages but it doesn't seem like like anyone has kinda had this issue. I wanna say there piece of code missing in my tpl_product_info_display.php where its not writing the correct price depending on what tier they are. Let me know if anyone needs any more information or clarification.
-
Re: DUAL Pricing v2
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
Horrific_ending
i am not sure if this issue is the same issue voltar had but...
its taken me about a week or so to fine tune this mod without any issues. Well not the issue i am having is i have everything set up to where it shows me retail and then shows me the wholesale price. Now tier one shows the price correct. Problem is when i go in and change a customer to tier 2 pricing it shows tier ones pricing but when i add it to the cart it shows tier two pricing.
Question is..is there a way to show tier two pricing all together if they are tier two or tier three pricing if they are tier three on the product page as well? Ill keep on going through the pages but it doesn't seem like like anyone has kinda had this issue. I wanna say there piece of code missing in my tpl_product_info_display.php where its not writing the correct price depending on what tier they are. Let me know if anyone needs any more information or clarification.
I've just about beat this thing into submission... I think. A couple more tweaks and I'll run with it. I believe that you are on the right track looking into the tpl_product_info_display.php file for what you want. I use a custom template file so I had to hand code in the code differences and then modify it to work the way I wanted.
The docs are pretty good in there and you should be able to locate where you want to add the additional information you need. Your request doesn't seem too difficult to pull off. I'm pretty much a hacker. I just hack away till it works and then move on. Hopefully someone with a bit more experience than me can jump in here and point you in the right direction. If not, tinker around with tpl_product_info_display.php one section at a time and you might just stumble into exactly what you want. Good luck.
-
Re: DUAL Pricing v2
Ok, now it's done. I have finally completed Site Wide Wholesale Customer Pricing + Radio Button Retail Pricing + Grid Wholesale Multi Add Pricing + Stock Quantities, and it all runs on 1.3.9h with MultiSite, CEON URI Mapping, Products with Attributes Stock and it's not hacked... there's even remarks!
That means retail and wholesale prices now display properly on the site as a guest, logged in retail customer and logged in wholesale customer.
Give me a couple days to compile it and share it with the group...
Here's a preview:
Guest/Retail Product Page
Attachment 10572
Wholesale Product Page
Attachment 10573
I made a point to leave a lot of the old code from various contributions in tack so anyone upgrading can see what I've changed or to ensure the variables others might be using are not corrupted.
This took months to get working... Finally, Twitch is back!
-
Re: DUAL Pricing v2
Sounds awesome.. A few questions..
- Does SBA show stock quantities for product variants where there is more than one attribute or only for single attributes?
- Which version of SBA are you using?
- What about hidden wholesale. Is that included as well?
Quote:
Originally Posted by
twitchtoo
Ok, now it's done. I have finally completed Site Wide Wholesale Customer Pricing + Radio Button Retail Pricing + Grid Wholesale Multi Add Pricing + Stock Quantities, and it all runs on 1.3.9h with MultiSite, CEON URI Mapping, Products with Attributes Stock and it's not hacked... there's even remarks!
That means retail and wholesale prices now display properly on the site as a guest, logged in retail customer and logged in wholesale customer.
Give me a couple days to compile it and share it with the group...
Here's a preview:
Guest/Retail Product Page
Attachment 10572
Wholesale Product Page
Attachment 10573
I made a point to leave a lot of the old code from various contributions in tack so anyone upgrading can see what I've changed or to ensure the variables others might be using are not corrupted.
This took months to get working...
Finally, Twitch is back!
-
Re: DUAL Pricing v2
DivaVocals,
1 - Multiple attributes and multiple types... Picture 1 - The sizes (Size) each have corresponding personalizing (Text) quantities in stock, personalizing is being hidden for wholesale in the second picture. It would be possible to display the personalizing for each size and it's stock as the data is already loaded in the array. Another options would be displaying Adult Sizes and Kids sizes on the same product page.
2 - SBA 4.7a upgraded for 1.3.9h.
3 - I rebuilt the Dual Pricing Wholesale Pricing v1.7 Module. The current version Dual Pricing v1.8 and Hidden Wholesale I have had NO hand in. Mine works and it's not hacked... 2 years of solid sales without failing. It runs all the time, MultiSite or not, meaning you can use it with a variety of templates or sites or not at all. It does not cater to wholesale pricing tiers/levels. In the site it's programmed for you're either a wholesale customer or you're not, very simple switch.
Twitch.
-
Re: DUAL Pricing v2
With regards to item #1.. Actully what I was asking about is product variants that consist of two (or more) attributes.. For example if I was selling widgets that came in three sizes, and four colors. Would I be able to see the qty for each size/color combo? So if I have 4 large/pink t-shirts in stock would I see the quantity for this size/color combo in your implementation..
With regard to item #3.. Understood.. and that's what I was hoping you would say.. So if you are a wholesale customer, you only see wholesale pricing, retail customers & guest only see retail pricing.. Is that correct?? If so, then are you saying that there is only ONE "level" for wholesale pricing. Can you elaborate on this point a bit. Does this mean that for each product there is a retail and a whole sale price?? If so if I do not set a wholesale price for a product, what does the wholesale customer see when viewing that product??
One last question.. I take it that this is a Zen Cart v1.3.9 add-on??
Quote:
Originally Posted by
twitchtoo
DivaVocals,
1 - Multiple attributes and multiple types... Picture 1 - The sizes (Size) each have corresponding personalizing (Text) quantities in stock, personalizing is being hidden for wholesale in the second picture. It would be possible to display the personalizing for each size and it's stock as the data is already loaded in the array. Another options would be displaying Adult Sizes and Kids sizes on the same product page.
2 - SBA 4.7a upgraded for 1.3.9h.
3 - I rebuilt the Dual Pricing Wholesale Pricing v1.7 Module. The current version Dual Pricing v1.8 and Hidden Wholesale I have had NO hand in. Mine works and it's not hacked... 2 years of solid sales without failing. It runs all the time, MultiSite or not, meaning you can use it with a variety of templates or sites or not at all. It does not cater to wholesale pricing tiers/levels. In the site it's programmed for you're either a wholesale customer or you're not, very simple switch.
Twitch.
-
Re: DUAL Pricing v2
DivaVocals,
1 - It's setup to run through the attributes that are associated with the product. If the output was not suitable some minor changes to the code could be made, once the data is loaded properly into the array it's only a matter of formatting the output to your needs.
3 - The index page is filtered for all three Guest/Retail and Wholesale, technically guest and retail are identical right now, wholesale customers have their own index. One level of wholesale is correct, the site was running with radio buttons for all products with retail/wholesale now by request I have split the two. Retail = Radio Buttons, Wholesale = Grid Pricing with Quantity Add and Stock Display. Currently the retail customer experience is identical to the wholesale, save the index page and the pricing... Shipping and Payment Options are also filtered for retail/wholesale with the same switch.
Have a look:
Guest/Retail Page:
Attachment 10578
Wholesale Page:
Attachment 10579
You need to set the prices for retail and wholesale, this site has many products, a blanket discount is not appropriate.
It's possible to completely change the output for a wholesale customer if you need to, this site did not require drastic retail/wholesale changes. With MultiSite installed you also have the option of creating a Wholesale Template.
Finally, this wholesale filter will work WITHOUT attributes... just regular products and retail/wholesale prices will also work :)
Only compatible with 1.3.9h at the moment.
Twitch.
-
Re: DUAL Pricing v2
Sorry to do this to ya.. I do have a few more questions..
If I have a product with a retail price set, but no wholesale price set, what does the wholesale customer see??
Going back to products with attributes: So using your posted examples what do I see if the product has a size/color product variant. If I had say 4 large/green footed pajamas in stock do I see that displayed with the attributes on the product page?? Or can you only display stock quantities when there is only ONE attribute (size only or color only versus size AND color as in your example)
Quote:
Originally Posted by
twitchtoo
DivaVocals,
1 - It's setup to run through the attributes that are associated with the product. If the output was not suitable some minor changes to the code could be made, once the data is loaded properly into the array it's only a matter of formatting the output to your needs.
3 - The index page is filtered for all three Guest/Retail and Wholesale, technically guest and retail are identical right now, wholesale customers have their own index. One level of wholesale is correct, the site was running with radio buttons for all products with retail/wholesale now by request I have split the two. Retail = Radio Buttons, Wholesale = Grid Pricing with Quantity Add and Stock Display. Currently the retail customer experience is identical to the wholesale, save the index page and the pricing... Shipping and Payment Options are also filtered for retail/wholesale with the same switch.
Have a look:
Guest/Retail Page:
Attachment 10578
Wholesale Page:
Attachment 10579
You need to set the prices for retail and wholesale, this site has many products, a blanket discount is not appropriate.
It's possible to completely change the output for a wholesale customer if you need to, this site did not require drastic retail/wholesale changes. With MultiSite installed you also have the option of creating a Wholesale Template.
Finally, this wholesale filter will work WITHOUT attributes... just regular products and retail/wholesale prices will also work :)
Only compatible with 1.3.9h at the moment.
Twitch.
-
Re: DUAL Pricing v2
DivaVocals,
1 - Logically No wholesale price = $0.00
2 - If you were to add a non dependent attribute it would output the option name, then value. It has not been tested with a dependent product matrix which I believe you are referring to.
There's no reason why it wouldn't support the matrix as long as the data was loaded correctly before it was displayed.
An alternative would be reversing the option names with the attributes.
Twitch.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
DivaVocals
Personally I will NOT use any add-on on a client production store that has not been properly updated.:no:
That is all very well in theory, but is it better to use an addon that has not been properly updated, or to stay on 1.3.9 because that addon is required for the way the store works?
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
hairydog
That is all very well in theory, but is it better to use an addon that has not been properly updated, or to stay on 1.3.9 because that addon is required for the way the store works?
It's better to have a secure WORKING site.. not in theory, but in actuality.. But to answer your question here's what I DO say..
Zen Cart v1.3.8 has KNOWN security vulnerabilities and anyone running v1.3.8 should upgrade ASAP. For these implementations if:
- all of the add-ons a shopowner is using have not been upgraded to be compatible v1.5
- the shopowner's host is not requiring PCI compliance just yet
- it is a SHOWSTOPPER to not have these add-ons
Then in that narrow set of circumstances shopowner should AT LEAST upgrade to v1.3.9 to ensure that the site is secure.
Zen Cart v1.3.9 is quite secure and for those who have a stable v1.3.9 implementation going and whose hosts are not requiring PCI compliance just yet, IMHO, they should wait until all the mods you use are properly updated for Zen Cart v1.5 before upgrading.
In MY opinion it is NOT better to use a mod that has not been properly updated of test on a live store. I DO NOT use add-ons on any client site unless they have been properly updated and thoroughly tested (Why?? I don't know.. Maybe because my clients kinda like it when their store live functions as it should versus "it sorta works":laugh:) It is better to update the mod properly so that it works properly.
And as I have stated several times on this forum, if an add-on has not been upgraded to be compatible with Zen cart v1.5, and it is a SHOWSTOPPER item for the BUSINESS owner, then there are three BUSINESS options the owner of the BUSINESS has:
- Find a workaround solution
- Hire a developer to update the add-on
- Wait patiently until the add-on is upgraded by a community member
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
DivaVocals
And as I have stated several times on this forum, if an add-on has not been upgraded to be compatible with Zen cart v1.5, and it is a SHOWSTOPPER item for the BUSINESS owner, then there are three BUSINESS options the owner of the BUSINESS has:
- Find a workaround solution
- Hire a developer to update the add-on
- Wait patiently until the add-on is upgraded by a community member
Indeed. In fact this business has been sitting on 1.3.9 for months in the hope that one particular add-on would be upgraded, but as Super Orders seems to be stuck again, they have taken an extra member of staff on to do the tasks that SO made easier (I suspect they really needed someone extra anyway).
But the reality is not as clear-cut as you seem to describe it. They have passed PCI audits with 1.3.9 and earlier, and the idea of a workaround solution for dual pricing is pretty unrealistic. Yes, they could hire a programmer to update add-ons, but that really would be re-inventing the wheel. The question that you have not answered (even though you say you have) is whether it is more secure to use 1.5.0 with some 1.3.9 addons that seem to work, or to use 1.3.9 with some 1.3.9 addons that seem to work. I'm not clear about why they would be less secure on 1.5.0 than on 1.3.9. I suspect that you may know, but you clearly are not keen to share this information.
To be honest, I begin to wonder if it might be as easy to migrate them to Magento.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
hairydog
Indeed. In fact this business has been sitting on 1.3.9 for months in the hope that one particular add-on would be upgraded, but as Super Orders seems to be stuck again, they have taken an extra member of staff on to do the tasks that SO made easier (I suspect they really needed someone extra anyway).
It's not stuck.. It's just not done.. Working on remaining bugs.. Call me crazy, but I have this thing about not wanting to put out something that doesn't work as it's supposed to if I can avoid it..:laugh: The development is volunteer driven, and volunteers are people with lives.. Lives outside the forum sometimes require some attention & time.. So sometimes updates take time.. Sometimes they a LOT of time (and yep I freely admit that SO is one that fits this category).. Fact of life in open source.. (Ask Twitch.. he can tell you this is true..:smile:)
Quote:
Originally Posted by
hairydog
But the reality is not as clear-cut as you seem to describe it. They have passed PCI audits with 1.3.9 and earlier, and the idea of a workaround solution for dual pricing is pretty unrealistic. Yes, they could hire a programmer to update add-ons, but that really would be re-inventing the wheel.
Hire someone, wait, or workaround it.. there isn't a fourth option.. The reality is JUST that clear cut.. As much as folks don't like to hear this, that IS the reality of working with free open source software. IMHO any small business that is hoping that there will be NO capital outlay (even a small one) to maintain the technology that drives their business isn't realistic at all.. An add-on like Dual Pricing could easily be a show stopper for a small business, and that is something that has to be thought about LONG and hard by any small business that may not have a budget for a developer if the need arises. The two clients I have who needed dual pricing features opted to hire someone to update the add-on because they did not want to wait, and they did not have an adequate workaround.. (other than building a parallel wholesale shop) Was it re-inventing the wheel for them?? Nope.. it wasn't doing anything different than doing what folks are looking for a volunteer to do with Dual Pricing.. Update the add-on.. My clients opted to pay and not to wait, but I am glad to see Twitch is back and that he has updated this fantastic mod..:smile: (which is why I continue to monitor this thread)
Quote:
Originally Posted by
hairydog
The question that you have not answered (even though you say you have) is whether it is more secure to use 1.5.0 with some 1.3.9 addons that seem to work, or to use 1.3.9 with some 1.3.9 addons that seem to work. I'm not clear about why they would be less secure on 1.5.0 than on 1.3.9. I suspect that you may know, but you clearly are not keen to share this information.
To be honest, I begin to wonder if it might be as easy to migrate them to Magento.
Not keen to share?? Clearly?? It's CLEAR that I am attempting to NOT share??? Well okay.. I thought I had shared.. so I'm not sure what it is you are indicating that I am not "sharing"..
The ENTIRE purpose of the v1.5 release was to become PCI certified. Zen Cart v1.3.9 is most certainly NOT PCI certified -- and on this point you can take that up with DrByte if you disagree because it's HIS word and the word of other knowledgeable Zen Cart gurus that I take on this point. So based on this, it is my understanding that v1.3.9 is a secure version and unless there is an issue with PCI compliance, there isn't any reason to make the jump to v1.5 if all the add-ons a shopowner wants are not available. Not sure why you feel that you HAVE to make the jump to v1.5 from v1.3.9 in such a hurry.
So if you are asking me should you use v1.3.9 add-ons with v1.5 if they seem to work??? I thought I was clear on my position.. I have made not explicit statements about add-ons being MORE or LESS secure in v1.3.9 versus v1.5.. However the Zen Cart admins have.. They have made a clear distinction between "working with v1.5" and "working while maintaining PCI compliance/security with v1.5"
If the person installing the add-on is not knowledgeable enough to determine whether or not a mod is TRULY v1.5 compatible versus seeing that it "appears" to work, then my answer is NO don't install add-ons until you can get confirmation that yes they are TRULY v1.5 compatible.. There are some v1.3.9 add-ons that WILL NOT work with v1.5 (Dual Pricing is one) and requires upgrades to work correctly. There are some v1.3.9 add-ons that will indeed work with v1.5 without any updates required.. For that matter there are a FEW v1.3.8 add-ons that will work in v1.5.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
DivaVocals
So if you are asking me should you use v1.3.9 add-ons with v1.5 if they seem to work??? I thought I was clear on my position.. I have made not explicit statements about add-ons being MORE or LESS secure in v1.3.9 versus v1.5.. However the Zen Cart admins have.. They have made a clear distinction between "working with v1.5" and "working while maintaining PCI compliance/security with v1.5"
That's very helpful, thanks. The former matters to me at present, the latter does not.
As long as 1.3.9 installations pass PCI certification as they seem to be doing at present, it doesn't matter whether ZC is itself PCI certified. That would not negate the need for PCI testing every year in any case. No UK bank will say "OK, you've used PCI certified software so we won't need to check your system" - it isn't their way!
Quote:
Originally Posted by
DivaVocals
If the person installing the add-on is not knowledgeable enough to determine whether or not a mod is TRULY v1.5 compatible versus seeing that it "appears" to work, then my answer is NO don't install add-ons until you can get confirmation that yes they are TRULY v1.5 compatible.
That does not seem to be easy. Even going through the seventeen page thread about which have been updated for 1.5.0 you get statements like:
"I have a few more to add to the list. These mods have been updated for 150, tested for functionality, and submitted to the downloads section."
Does that mean they seem to work (that's what I'd assume "tested for functionality" means) or does it mean they are "TRULY v1.5 compatible"?
There is a slowly-growing list of addons that work with 1.5 in that thread, but it seems a pity that there is no single table of addons, with an indication that whether a specified version of each addon:
1. Does not work with 1.5
2. "Seems to work" with 1.5 (including your "working with 1.5")
3. Is 1.5 compatible (including "working while maintaining PCI compliance/security with v1.5")
4. Is backwards compatible with 1.3.9
5. Don't know the status yet
and also
6. has a link to where that version can be found
If that could be collated into one single, updated post it would make life so much easier!
Quote:
Originally Posted by
DivaVocals
There are some v1.3.9 add-ons that WILL NOT work with v1.5 (Dual Pricing is one) and requires upgrades to work correctly.
Again, very helpful. Thank you. I don't think I have managed to find that clearly stated anywhere.
I just wish I knew enough to be able to work out what the issues with Dual Pricing and 1.5.0 are. Or even where they are being discussed.
The basic reason for this store wanting to move to 1.5.0 is that they very foolishly let some graphic design firm update the look and feel (perfectly sensible) by letting them alter the code (much less sensible). They seem to have made a complete mess of some of it, incorporating all sorts of bad practice and old versions of files, and the result is lots of PHP warnings in the error logs each day. But perhaps they need to re-upgrade to 1.3.9.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
hairydog
That's very helpful, thanks. The former matters to me at present, the latter does not.
But security SHOULD matter.. and an add-on WORKING with v1.5 does not mean that it will maintain the security (and hence PCI compliance) of v1.5..
Quote:
Originally Posted by
hairydog
That does not seem to be easy. Even going through the seventeen page thread about which have been updated for 1.5.0 you get statements like:
"I have a few more to add to the list. These mods have been updated for 150, tested for functionality, and submitted to the downloads section."
Does that mean they seem to work (that's what I'd assume "tested for functionality" means) or does it mean they are "TRULY v1.5 compatible"?
Can't give a blanket answer to that..
Quote:
Originally Posted by
hairydog
There is a slowly-growing list of addons that work with 1.5 in that thread, but it seems a pity that there is no single table of addons, with an indication that whether a specified version of each addon:
1. Does not work with 1.5
2. "Seems to work" with 1.5 (including your "working with 1.5")
3. Is 1.5 compatible (including "working while maintaining PCI compliance/security with v1.5")
4. Is backwards compatible with 1.3.9
5. Don't know the status yet
and also
6. has a link to where that version can be found
If that could be collated into one single, updated post it would make life so much easier!
Don't look for this to happen.. Consolidating the reported working apps in that thread is enough work for any one volunteer to do.. I don't see anyone taking all these extra steps..
Quote:
Originally Posted by
hairydog
Again, very helpful. Thank you. I don't think I have managed to find that clearly stated anywhere.
Twitch did.. So did I in this thread for that matter.. There has been a fair bit of discussion of the v1.5 compatibility of Dual Pricing..
Quote:
Originally Posted by
hairydog
I just wish I knew enough to be able to work out what the issues with Dual Pricing and 1.5.0 are. Or even where they are being discussed.
Well you know the options you can exercise if you NEED Dual Pricing and can't work it out yourself.. :smile: Consider getting your client to consider INVESTING in the dev work if they can't wait..
Quote:
Originally Posted by
hairydog
The basic reason for this store wanting to move to 1.5.0 is that they very foolishly let some graphic design firm update the look and feel (perfectly sensible) by letting them alter the code (much less sensible). They seem to have made a complete mess of some of it, incorporating all sorts of bad practice and old versions of files, and the result is lots of PHP warnings in the error logs each day. But perhaps they need to re-upgrade to 1.3.9.
Sounds to me like your last suggestion a better on and will get you better prepared for the v1.5 upgrade when the time comes..
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
DivaVocals
But security SHOULD matter.. and an add-on WORKING with v1.5 does not mean that it will maintain the security (and hence PCI compliance) of v1.5.
Security matters, box ticking does not.
As I said before, PCI compliance from the client's point of view is not related to whether ZC code is PCI compliant: it depends on whether the company checking it for the bank considers it to be PCI compliant, and to date, they have been happy to sign off 1.3.9 as compliant.
You seem to be saying that 1.3.9 with 1.3.9 addons is more secure than 1.5.0 with 1.3.9 addons. I'm not sure I understand why that should be, but I don't know enough to have an opinion on the subject.
Getting a client to invest in dev work is almost impossible unless you are able to present them with realistic budget estimate and a business case to justify that expenditure. It just ain't gonna happen.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
hairydog
You seem to be saying that 1.3.9 with 1.3.9 addons is more secure than 1.5.0 with 1.3.9 addons. I'm not sure I understand why that should be, but I don't know enough to have an opinion on the subject.
I seem to be saying exactly what I have stated.. no hidden message in my words.. No read between the lines.. I said that v1.3.9 is secure.. v1.5 was built to IMPROVE the security of v1.3.9. if you have a stable v1.3.9 install then there is no rush to upgrade to v1.5.. I am saying that unless you know HOW to upgrade 1.3.9 add-ons so that they maintain the SAME security that is the MAIN THRUST of v1.5, then you should not install v1.3.9 add-ons that have not been updated or tested to work with Zen Cart v1.5.. I think this is a pretty clear statement..
Quote:
Originally Posted by
hairydog
Getting a client to invest in dev work is almost impossible unless you are able to present them with realistic budget estimate and a business case to justify that expenditure. It just ain't gonna happen.
I would say not having an app that they NEED is the justification for a business owner to INVEST in the tools they need to do business.. Most of my clients usually make the investment in their business.. Only 1 opted to do without their "must have" add-ons and work around the issue.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
DivaVocals
I seem to be saying exactly what I have stated.. no hidden message in my words.. No read between the lines.. I said that v1.3.9 is secure.. v1.5 was built to IMPROVE the security of v1.3.9. if you have a stable v1.3.9 install then there is no rush to upgrade to v1.5.. I am saying that unless you know HOW to upgrade 1.3.9 add-ons so that they maintain the SAME security that is the MAIN THRUST of v1.5, then you should not install v1.3.9 add-ons that have not been updated or tested to work with Zen Cart v1.5.. I think this is a pretty clear statement..
I would say not having an app that they NEED is the justification for a business owner to INVEST in the tools they need to do business.. Most of my clients usually make the investment in their business.. Only 1 opted to do without their "must have" add-ons and work around the issue.
Also at this point we are hijacking the Dual Pricing thread with what has become an off-topic discussion, and this probably should be moved to a more appropriate place on the forum.... There is a whole thread in the upgrade forum which will provide you with the information about why you can't just simply install v1.3.9 add-ons with v1.5.. Suggest you head over there and check it out..
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
DivaVocals
if you have a stable v1.3.9 install then there is no rush to upgrade to v1.5.
You could work for Microsoft support. What you say is true, but no help at all. As I said, I don't have a stable 1.3.9 install, so you know that helpful hint is just noise to me. So why write it?
Frankly, I wonder if you get off on not helping, because you seem to put a lot of effort into it. Regularly your response to people saying they can't find something is to tell them the info is there, but offer no clues. You could so easily suggest a search term or provide a link.
You could easily say what you do mean. I said that you seem to be saying something that you say you are not saying. TRY LISTENING. That IS what you seem to be saying TO ME. I am trying to help you improve your terrible communication.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
hairydog
You could work for Microsoft support. What you say is true, but no help at all. As I said, I don't have a stable 1.3.9 install, so you know that helpful hint is just noise to me. So why write it?
No help?? oh okay.. well I guess you missed where I had stated earlier that I agreed with where you stated that perhaps your best course of action was to fix/red-do the 1.3.9 install you have..
Quote:
Originally Posted by
hairydog
Frankly, I wonder if you get off on not helping, because you seem to put a lot of effort into it. Regularly your response to people saying they can't find something is to tell them the info is there, but offer no clues.
Regularly eh?? You mean like suggesting to folks that they review the readme documentation when the question they ask is in the readme documentation?? I tell people to look for things when it's clear that they have not read the documentation. and I am not the only person who makes this suggestion to folks.. Sorry that you find that offensive or not helpful..
Quote:
Originally Posted by
hairydog
You could so easily suggest a search term or provide a link.
You mean suggesting that folks look for the top level forum section that says "Upgrading Your Zen Cart". Or the topic under that section that says "Upgrading from 1.3 to 1.5". versus posting the link to these sections.. My apologies.. I didn't realize that these sections would be so hard to find that I would have to provide a link to them. I'll make a note of that..
Quote:
Originally Posted by
hairydog
You could easily say what you do mean. I said that you seem to be saying something that you say you are not saying. TRY LISTENING. That IS what you seem to be saying TO ME. I am trying to help you improve your terrible communication.
I did.. You interpreted something I said incorrectly.. so I clarified.. Sorry you are now taking offense to that..
-
Re: DUAL Pricing v2
So just for anyone that has had the same issue as me. I solved it, in the instructions it states that you have to format your pricing as followed: 50.00-30.00-0.00-25.00...this was showing tier 1 pricing for all tiers until you added them cart in which this is not what i wanted. Instead just did the following when formatting pricing 50.00-30.00-25.00 and it showed correctly.
-
Re: DUAL Pricing v2
dual pricing 1.8 for zen cart 1.3.9
in the section it says if you want your wholesale customers to see both retail and wholesale,
then uncomment line 71#
can anyone tell me what line 71# looks like and what does uncomment mean exactly, i am only new to this, so im not really up on the terms
so any help would be appreciated
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
fraser coast
dual pricing 1.8 for zen cart 1.3.9
in the section it says if you want your wholesale customers to see both retail and wholesale,
then uncomment line 71#
can anyone tell me what line 71# looks like and what does uncomment mean exactly, i am only new to this, so im not really up on the terms
so any help would be appreciated
to uncomment or comment out a particular php code you simple add or remove // at the beginning of a line for example
PHP Code:
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
class oFBLikeBox{
function getData(&$params ){
$oFlink = $params->get('olink', 'http://www.facebook.com/pages/Optimized-Sense/230549220294427?ref=ts');
$oFwidth = $params->get('owidth', '300');
$oFheight = $params->get('oheight', '500');
$oFborder = $params->get('oborder', '000000');
//$oFcolor = $params->get('ocolor');
$oFfaces = $params->get('ofaces');
$oFstream = $params->get('ostream');
$oFforce = $params->get('oforce');
$oFheader = $params->get('oheader');
$oFsource = $params->get('osource');
using // basically tells browsers - servers to disregard what is shown there - - essentially // is used for developer notes to describe sections for future reference
Really not trying to sound like an ###### here but if you are new to Zen and want your store to have a custom look or any modification really you should spend a few days brushing up on php coding skills - - A great place is youtube but there are tons of other web tutorials.. This will save you tons of time in the long run. btw there is other ways to uncomment or comment out // is just one of them
Hope this helps
-
Re: DUAL Pricing v2
On the sunny side - -
As all good things must come to an end so shall my endeavors with Zen cart.. After spending countless hours adding, fixing and upgrading to get the most out of my ecommerce store I have decided to finally switch to a different platform..
I'm not gonna put some shameless plug here but what I will tell you is that the new platform I am currently migrating to has built in features like wholesale groups, multiple stores, upscales, cross sales etc.. Needless to say I'm thoroughly impressed - - If you would like to know what it is just pm me... Note the php skills required are more advanced so this isn't for the faint at heart...
The entire purpose of me even going into this is really just to thank all the developers on this form for their time and efforts to make Zen an amazing start up cart - - Honestly Diva, Twitch and few others if not for you guys/gals I'd a been lost a long time ago
I will keep the files up that I linked in a earlier post for those who need them (123 downloads thus far)
Good luck peeps and Happy zenning!
-
Re: DUAL Pricing v2
Hi,
Sorry to bother you but I search a lot and found no answer to my problem.
I have installed ''dual pricing'' and everything seem to work well but I just install "Edit order" and my problem is than when I edit an order, I can add products but the price of these products are always the price for "normal costumer"
Do you have a way to fix this? or are they just not compatible?
thank you for your time
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
jean-francois
Hi,
Sorry to bother you but I search a lot and found no answer to my problem.
I have installed ''dual pricing'' and everything seem to work well but I just install "Edit order" and my problem is than when I edit an order, I can add products but the price of these products are always the price for "normal costumer"
Do you have a way to fix this? or are they just not compatible?
thank you for your time
Edit Orders will work with the default Group Pricing, and you might want to consider using that instead for your dual pricing needs or perhaps this add-on might suit your needs better and since it uses the built in Zen Cart discount groups it might work with Edit Orders.. http://www.zen-cart.com/downloads.php?do=file&id=223
Edit Orders would need to be re-written to work with Dual Pricing and IMHO if this were to happen it needs to maintain it's compatibility to the default Group Pricing..
-
Re: DUAL Pricing v2
Has anyone had the opportunity to look at why the wonderful Dual Pricing mod doesn't work with SaleMaker? Any thoughts on how to get the wholesale price to *not* reflect the Sales discount?
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
richardtuttle
Has anyone had the opportunity to look at why the wonderful Dual Pricing mod doesn't work with SaleMaker? Any thoughts on how to get the wholesale price to *not* reflect the Sales discount?
You might want to have a glance at this add-on too: http://www.zen-cart.com/downloads.php?do=file&id=223
Might work better for your needs..
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
DivaVocals
Actually, no it wouldn't. In fact, we use to utilize that add-on but it doesn't function the way that we need it to while Dual Pricing is PERFECT - except for it discounting the Sales (from SaleMaker) to our Wholesale customers. LOL :-\
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
richardtuttle
Actually, no it wouldn't. In fact, we use to utilize that add-on but it doesn't function the way that we need it to while Dual Pricing is PERFECT - except for it discounting the Sales (from SaleMaker) to our Wholesale customers. LOL :-\
Well I was thinking these specific features were more in lines with what you were inquiring about.. (since Dual Pricing does not offer similar features -- never has)
Quote:
5.) Prevent group discounts from being given on products already on sale or special at a
higher discount. If the group discount price is lower than the sale or special price,
products will be offered at the group discount price.
6.) Prevent discounts of any kind being issued on gift certificates.
Anyway.. perhaps someone will come along and explain how to add similar features to Dual Pricing..
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
DivaVocals
Well I was thinking these specific features were more in lines with what you were inquiring about.. (since Dual Pricing does not offer similar features -- never has)
Anyway.. perhaps someone will come along and explain how to add similar features to Dual Pricing..
Yes, I understand that part but it doesn't give minute control over the wholesale pricing of each individual product. :)
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
richardtuttle
Yes, I understand that part but it doesn't give minute control over the wholesale pricing of each individual product. :)
Yes I do understand the difference between the two apps..
My client opted to change the way she configured/managed her wholesale products so that she could use the other mod because the discounting of wholesale prices was a huge deal breaker for her.. But hey.. different strokes and all right??:smile:
Anyway, hopefully someone will come along and explain how to make this same kind of feature work with Dual Pricing..
-
Re: DUAL Pricing v2
I've finally got dual pricing and hidden wholesale up and running together. (Thanks Leonard!) I'm still not able to get the wholesale prices to work with attributes but I really don't need them to right now. The problem I'm having is that the sub-total is not showing the correct sub-total. If anything in the cart isn't part of the duel pricing scheme, it doesn't add to the subtotal. However, the correct total is displayed in the final cart screen during checkout so orders are not affected.
If anyone has an idea how to repair the sub-total total field, I am very interested. However I would also not be opposed to eliminating the field altogether. I have found the title fields and can clear them out but I can't find the file where the sub-total field is pushed to the screen. Any assistance would be greatly appreciated.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
voltar
If anyone has an idea how to repair the sub-total total field, I am very interested. However I would also not be opposed to eliminating the field altogether. I have found the title fields and can clear them out but I can't find the file where the sub-total field is pushed to the screen. Any assistance would be greatly appreciated.
You might wanna check your old post... :smile: Probably just until you find a proper fix for what you need.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
balihr
You might wanna check
your old post... :smile: Probably just until you find a proper fix for what you need.
Most excellent! Many thanks.
-
Re: DUAL Pricing v2 - attributes not showing wholesale prices - FIXED!
I've been struggling a bit in an attempt to get Dual Pricing 1.8 & Hidden Wholesale to work on ZC 1.3.9h - it was all working apart from not showing wholesale prices for attributes.
Searching this thread turned up a few people with this problem, but no solutions.
But I think I have found the problem.
At about line 1390 of includes/functions/functions_prices.php change
Code:
if ($pre_selected->fields["price_prefix"] == '-') {
$attributes_price_final -= $pre_selected->fields["options_values_price"];
} else {
$attributes_price_final += $pre_selected->fields["options_values_price"];
}
// qty discounts
to
Code:
if ($pre_selected->fields["price_prefix"] == '-') {
$attributes_price_final -= $options_values_price;
} else {
$attributes_price_final += $options_values_price;
}
// qty discounts
Well, it worked for me. Hope it helps others.
Iain
-
Re: DUAL Pricing v2 - attributes not showing wholesale prices - FIXED!
Hmm. It only worked up to a point. The right price is now shown for attributes, but when the item is added to the cart, the full price is shown. Anyone have any suggestions how to sort that out? Does the cart get its price from somewhere else?
-
Re: DUAL Pricing v2 - attributes not showing wholesale prices - FIXED!
Sorted it - took me since the last message to find the problem, fix and test.
The problem was in the includes/classes/shopping_cart.php file
-
Re: DUAL Pricing v2
I am back on trying to find a solution for my needs. A previous post is quoted below. Basically I have Dual Pricing & respective fixes implemented and working fine. However I am really focused on the wholesale side. The retail prices listed are more of a service. When I put something on sale, it is to the wholesale customer which is not happening as stated in the quoted post. When I go to the admin and set up a sale price, i need it to apply to the wholesale price and only show when logged in as a wholesale customer. Any thoughts?
Thanks
Quote:
Originally Posted by
idc1
The below is from edingtons fix:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
$special_price = false;
} else {
----------------------------------------------------------------------
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
return false;
} else {
---------------------------------------------------------------------
The code works as follows:
When logged in - sales price does NOT display.
When not logged in - sales price displays.
I have yet to get the reverse to happen. I want:
When logged in - sales price displays.
When not logged in - sales price does not display.
How can I make this happen? If I change
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' )
to
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] = '0' )
That made the sales price display both when logged in and not logged in.
-
Re: DUAL Pricing v2
This is untested, but should work:
Code:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] == '0' ) {
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
jackie.taferner
This is untested, but should work:
Code:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] == '0' ) {
Thank you for the input Jackie. I tried it with no success. I also tried several other combinations...I found none of them to work either. Some of the things I attempted are noted in red. I believe this is the only portion in includes/functions/functions_prices.php to control when to show sales price. Any other suggestions?
//get specials price or sale price
function zen_get_products_special_price($product_id, $specials_price_only=false) {
global $db;
$product = $db->Execute("select products_price, products_model, products_priced_by_attribute from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
if ($product->RecordCount() > 0) {
// $product_price = $product->fields['products_price'];
$product_price = zen_get_products_base_price($product_id);
} else {
return false;
}
$specials = $db->Execute("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$product_id . "' and status='1'");
//I tried making next line ==0, !=1
if ($_SESSION['customers_wholesale'] && $_SESSION['customers_wholesale'] != '1' ) {
//I tried making next line =true
$special_price = false;
} else {
if ($specials->RecordCount() > 0) {
// if ($product->fields['products_priced_by_attribute'] == 1) {
$special_price = $specials->fields['specials_new_products_price'];
} else {
$special_price = false;
}
}
if(substr($product->fields['products_model'], 0, 4) == 'GIFT') { //Never apply a salededuction to Ian Wilson's Giftvouchers
if (zen_not_null($special_price)) {
return $special_price;
} else {
return false;
}
}
// return special price only
//I tried making next line ==0, !=1
if ($_SESSION['customers_wholesale'] && $_SESSION['customers_wholesale'] != '1' ) {
return false;
} else {
if ($specials_price_only==true) {
if (zen_not_null($special_price)) {
return $special_price;
} else {
return false;
}
} else {
// get sale price
-
Re: DUAL Pricing v2
Try reversing all the content inside the brackets {}. So essentially, use the same code outlined from Edington's fix, but switch the $special_price = false; with all the code that comes after } else {. You'll get something like this:
Code:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
// All the display code would go here
} else {
$special_price = false;
}
You might have to do further customizations to prevent sale prices from going into the shopping cart for Retail customers. You mention that Retail prices are displayed a service only - does that mean you do not plan to sell anything Retail, you're only selling Wholesale?
If that's the case, why not hide pricing unless users are logged in. There's a switch in Configuration > Customer Details > Customer Approval Status.
Then, there's a line of code in tpl_product_info_display.php that you can uncomment to show Wholesalers the retail price on the same page, like so:
Retail price: $500
Wholesale price: $300
Here's that section of code:
Code:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
// Uncomment the following line if you want wholesalers to be able to see Retail prices while logged in
echo '<span id="retailwhole">Retail Price: ' .$one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == '1') ? TEXT_BASE_PRICE : '') . zen_get_products_display_retail_net_price((int)$_GET['products_id']).'</span><br /> ';
}
-
Re: DUAL Pricing v2
Ok if I'm going to publish the working wholesale module we have to be clear that it seems now there are 3 half working versions in existence for 1.39h.
What does work in my version:
- retail pricing and display
- wholesale pricing and display
- retail attribute pricing with sold out by attribute
- wholesale attribute pricing with sold out by attribute and grid pricing
- wholesale login that works regardless of the template/multisite being used - uses one database
- bug fixes for the subtotal display problems listed in this forum
What has not been tested:
- zen discount pricing
- zen group pricing
I'm interested to know if anyone wants me to test these modules prior to releasing my version or if there's a wish list of features I could add in before it goes live.
Twitch.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
twitchtoo
Ok if I'm going to publish the working wholesale module we have to be clear that it seems now there are 3 half working versions in existence for 1.39h.
What does work in my version:
- retail pricing and display
- wholesale pricing and display
- retail attribute pricing with sold out by attribute
- wholesale attribute pricing with sold out by attribute and grid pricing
- wholesale login that works regardless of the template/multisite being used - uses one database
- bug fixes for the subtotal display problems listed in this forum
What has not been tested:
- zen discount pricing
- zen group pricing
I'm interested to know if anyone wants me to test these modules prior to releasing my version or if there's a wish list of features I could add in before it goes live.
Twitch.
You might as well. If you don't I'm sure someone will be wanting them features a well.
-
Re: DUAL Pricing version 2
I really need help here! I have NO CLUE as to how to set up the shipping by weight for my 6000 items. (sigh)
I can't understand the system and am just losing it!
HELP please :shocking:
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
twitchtoo
Ok if I'm going to publish the working wholesale module we have to be clear that it seems now there are 3 half working versions in existence for 1.39h.
What does work in my version:
- retail pricing and display
- wholesale pricing and display
- retail attribute pricing with sold out by attribute
- wholesale attribute pricing with sold out by attribute and grid pricing
- wholesale login that works regardless of the template/multisite being used - uses one database
- bug fixes for the subtotal display problems listed in this forum
What has not been tested:
- zen discount pricing
- zen group pricing
I'm interested to know if anyone wants me to test these modules prior to releasing my version or if there's a wish list of features I could add in before it goes live.
Twitch.
I am very appreciative of all the contributions to this mod so far by everyone on this thread, not least to DivaVocals for keeping track of all the fixes required along the way, and to Dannati for implementing those fixes and making available his files, which I am currently using.
For my tuppence worth to your question Twitch, I would be keen to see how your version is now, and leave 'wish list' features alone. This way you could benefit from peer testing of what needs testing, we could benefit from the option to use your version of the module if we wish, and extra features can come later if you or anyone else feels so inclined to contribute to it further. Just my thoughts, but great work and thanks everyone who contributes :smile:
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
twitchtoo
Ok if I'm going to publish the working wholesale module we have to be clear that it seems now there are 3 half working versions in existence for 1.39h.
What does work in my version:
- retail pricing and display
- wholesale pricing and display
- retail attribute pricing with sold out by attribute
- wholesale attribute pricing with sold out by attribute and grid pricing
- wholesale login that works regardless of the template/multisite being used - uses one database
- bug fixes for the subtotal display problems listed in this forum
What has not been tested:
- zen discount pricing
- zen group pricing
I'm interested to know if anyone wants me to test these modules prior to releasing my version or if there's a wish list of features I could add in before it goes live.
Twitch.
Release it and let the chips fall where they may..
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
jackie.taferner
Try reversing all the content inside the brackets
{}. So essentially, use the same code outlined from Edington's fix, but switch the
$special_price = false; with all the code that comes after
} else {. You'll get something like this:
Code:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
// All the display code would go here
} else {
$special_price = false;
}
You might have to do further customizations to prevent sale prices from going into the shopping cart for Retail customers. You mention that Retail prices are displayed a service only - does that mean you do not plan to sell anything Retail, you're only selling Wholesale?
If that's the case, why not hide pricing unless users are logged in. There's a switch in Configuration > Customer Details > Customer Approval Status.
Then, there's a line of code in tpl_product_info_display.php that you can uncomment to show Wholesalers the retail price on the same page, like so:
Retail price: $500
Wholesale price: $300
Here's that section of code:
Code:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0' ) {
// Uncomment the following line if you want wholesalers to be able to see Retail prices while logged in
echo '<span id="retailwhole">Retail Price: ' .$one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == '1') ? TEXT_BASE_PRICE : '') . zen_get_products_display_retail_net_price((int)$_GET['products_id']).'</span><br /> ';
}
:clap: Thanks Jackie. That worked and I also appreciate the other comments. The only thing I notice (fyi to others who may use this) is: once logged in as wholesale it shows the sales price for both retail & wholesale istead of just for wholesale on the product info page. It's not that big of a deal but if I can hack through the fix I'll post it. The big thing is that it no longer shows the sales price if NOT logged in :clap:
To answer your other question. We do not sell retail. However a lot of users are either 1)too lazy to sign in to see what MSRP is or 2) they enjoy the ability to turn the monitor around and show a customer the products & prices so that the end user feels comfortable about the manufacturer setting a MSRP and not a dealer using some inflated #. As for showing retail & dealer pricing, that happens on the product info page but not the product listing page. I believe this may be because of the column/grid add on.
-
Re: DUAL Pricing version 2
Please help!
We need this addon for zencart 1.5! ;)
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
ezecca
Please help!
We need this addon for zencart 1.5! ;)
In case you didn't read through this support thread.. there is no v1.5 version..
-
Re: DUAL Pricing version 2
I also need this for Zen Cart version 1.5.0. Is there an update to this Duel Pricing plugin that works with the latest Zen Cart?
Thank you.
-
Re: DUAL Pricing version 2
I will be releasing my wholesale pricing for 1.39h shortly, I have also started on a wholesale pricing for 1.5 and things are looking good :)
Twitch.
-
Re: DUAL Pricing version 2
That sounds great! Do I check back here for the link to the new release?
Also, Zen Cart 1.5 does work with the Dual Pricing 1.8, BUT, it conflicts with the Master Password and the two cannot be used together. Something you may want to think about is putting the Master Password, or something similar, as part of Dual Pricing. Especially since a lot of wholesale stores owners need to login as a customer when they are taking phone orders, email orders, etc.
Thank you!
-
Re: DUAL Pricing version 2
Hello Diva, (or others that can help :))
I have recently installed Dual Pricing - Wholesale Pricing - I am running v1.3.9h
Zen CartŪ Versions v1.3.9
Original Author romanus
Last Updated by jackie.taferner - 10 Aug 2011
Downloads 29,159
http://www.zen-cart.com/downloads.php?do=file&id=74
I have installed it twice - or over installed it / re-installed it and I still cannot get it to work at all - NOTHING shows up in admin under any section.
I note this in the readme file "THIS REPLACES GROUP PRICING. IF YOU USE GROUP PRICING THEN DON'T USE THIS."
I am not using Group Pricing, i.e. I have never installed it but it shows up under Customers in Admin so I can only assume it was part of the Zencart package.
Additionally I note a file for admin called 'easypopulate.php' .... does this mean that for this Plug-in to work one has to have the Easy Populate plug-in installed also ?? I can't find anything in the readme file to suggest that.
Looking for some help here :)
cheers,
Mike
-
Re: DUAL Pricing version 2
I tried to add this as a p.s. in edit but it timed out :)
is this how this mod works ?
p.s. here is how I envisaged this working so please correct me where I may have it wrong. On home page I could have a sidebox saying - 'Wholesale Prices available for Resellers' or something similar that went to an ez page explaining what was required for someone to qualify as a Wholesale customer and asking them to respond, maybe via via an email form completing certain information, e.g. their company name, website, business details, etc so that upon receipt of this info you could assess whether to allocate their status as a wholesale customer and at what discount level. Then through admin they would be allocated to that category so when they log in they see pricing to that level.
Is this basically how it works (when install works) ??
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
jjj0923
ok - well I just wrote the code and tested it.
not too difficult
one module needs to be modified:
/includes/classes/order.php
I made three changes to this module. I have not looked at 1.5 but I suspect the code is very similar
You can take a look in your code and see how similar they are.
1) code needs to be added to read the customers_whole field from the customers table so that you can check to see if this is a wholesaler/dealer (and skip the sales tax calculation)
that''s easy.
find this code:
PHP Code:
$customer_address_query = "select c.customers_firstname, c.customers_lastname, c.customers_telephone,
and replace it with:
PHP Code:
$customer_address_query = "select c.customers_firstname, c.customers_lastname, c.customers_telephone, c.customers_whole,
then find:
PHP Code:
// find product's tax rate and description
$products_tax = $this->products[$index]['tax'];
$products_tax_description = $this->products[$index]['tax_description'];
and insert this code after it (please bear in the mind that this code may be superfluous since we'll be avoiding the sales tax calculations altogether next, but I like to be safe)
PHP Code:
if ($customer_address->fields['customers_whole'] > 0)
{ $products_tax = 0;
$this->products[$index]['tax'] = 0;
$tax_add = 0;
$this->products[$index]['tax_description'] = '';
}
then finally there a chunk of code RIGHT BELOW what we just added that does all the sales tax calculation.
what I found in the standard 1.39 module is shown below:
PHP Code:
if (DISPLAY_PRICE_WITH_TAX == 'true') {
// calculate the amount of tax "inc"luded in price (used if tax-in pricing is enabled)
$tax_add = $shown_price - ($shown_price / (($products_tax < 10) ? "1.0" . str_replace('.', '', $products_tax) : "1." . str_replace('.', '', $products_tax)));
} else {
// calculate the amount of tax for this product (assuming tax is NOT included in the price)
// $tax_add = zen_round(($products_tax / 100) * $shown_price, $currencies->currencies[$this->info['currency']]['decimal_places']);
$tax_add = ($products_tax/100) * $shown_price;
}
$this->info['tax'] += $tax_add;
foreach ($taxRates as $taxDescription=>$taxRate)
{
$taxAdd = zen_calculate_tax($this->products[$index]['final_price']*$this->products[$index]['qty'], $taxRate)
+ zen_calculate_tax($this->products[$index]['onetime_charges'], $taxRate);
if (isset($this->info['tax_groups'][$taxDescription]))
{
$this->info['tax_groups'][$taxDescription] += $taxAdd;
} else
{
$this->info['tax_groups'][$taxDescription] = $taxAdd;
}
}
I added an if statement to wrap this code and only execute it if the customers is a non wholesaler/dealer
my code is shown below:
PHP Code:
// jjj added
if ($customer_address->fields['customers_whole'] == 0)
{
if (DISPLAY_PRICE_WITH_TAX == 'true') {
// calculate the amount of tax "inc"luded in price (used if tax-in pricing is enabled)
$tax_add = $shown_price - ($shown_price / (($products_tax < 10) ? "1.0" . str_replace('.', '', $products_tax) : "1." . str_replace('.', '', $products_tax)));
} else {
// calculate the amount of tax for this product (assuming tax is NOT included in the price)
// $tax_add = zen_round(($products_tax / 100) * $shown_price, $currencies->currencies[$this->info['currency']]['decimal_places']);
$tax_add = ($products_tax/100) * $shown_price;
}
$this->info['tax'] += $tax_add;
foreach ($taxRates as $taxDescription=>$taxRate)
{
$taxAdd = zen_calculate_tax($this->products[$index]['final_price']*$this->products[$index]['qty'], $taxRate)
+ zen_calculate_tax($this->products[$index]['onetime_charges'], $taxRate);
if (isset($this->info['tax_groups'][$taxDescription]))
{
$this->info['tax_groups'][$taxDescription] += $taxAdd;
} else
{
$this->info['tax_groups'][$taxDescription] = $taxAdd;
}
}
// jjj added
}
GOOD LUCK!
Hello. I've made the changes on the orders.php page as suggested in this thread to remove the taxes for wholesale accounts, and unfortunately it messes with the tax calculations even for retail customers. Any ideas?
-
Re: DUAL Pricing v2
I have recently installed Dual Pricing - Wholesale Pricing - I am running v1.3.9h
Zen CartŪ Versions v1.3.9
Original Author romanus
Last Updated by jackie.taferner - 10 Aug 2011
Downloads 29,159
http://www.zen-cart.com/downloads.php?do=file&id=74
I have installed it twice - or over installed it / re-installed it and I still cannot get it to work at all - NOTHING shows up in admin under any section - other than prices show as $xxx/0 indicating to me that 'something' is working, but as I said there is nothing at all in admin nor in configuration.
I note this in the readme file "THIS REPLACES GROUP PRICING. IF YOU USE GROUP PRICING THEN DON'T USE THIS."
I am not using Group Pricing, i.e. I have never installed it but it does show up under Customers in Admin so I can only assume it was part of the standard Zencart package.
Additionally I note a file for admin called 'easypopulate.php' .... does this mean that for this Plug-in to work one has to have the Easy Populate plug-in installed also ?? I can't find anything in the readme file to suggest that.
Looking for some help here :) (still)
cheers,
Mike
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
twitchtoo
I will be releasing my wholesale pricing for 1.39h shortly, I have also started on a wholesale pricing for 1.5 and things are looking good :)
Twitch.
Hi twitchtoo, just picked up on your thread, so happy someone working on this; :smile:
I have a store in 1.3.9h yet to install wholesale pricing but will soon be launching new store in 1.5 and hope to have the dual pricing working on this if its ready, perhaps, the existing versions would suffice in the interim, what you think:blink: cheers
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
jagall
Hi twitchtoo, just picked up on your thread, so happy someone working on this; :smile:
I have a store in 1.3.9h yet to install wholesale pricing but will soon be launching new store in 1.5 and hope to have the dual pricing working on this if its ready, perhaps, the existing versions would suffice in the interim, what you think:blink: cheers
The current Dual Pricing version with all of the updates in this thread are essentially what my version is based on. Obviously I recommend using mine ;) I'll be dedicating Thursday - Saturday of this week to finalizing the new wholesale pricing module with some fancy name and instructions... Then I'll start on a full 1.5 version next week. I have my own site running a super basic version of wholesale with 1.5 without any problems :)
And for those that have been following this thread, yes my life went for a ########, I'm getting back on my feet now, father first, programmer second. Any donations this time around would be much appreciated I'm flying solo now.
Twitch.
-
Re: DUAL Pricing version 2
Submitted version 1.9 (for 1.3.9h) with the following fixes:
- removed unused customers_wholesale database field
In the cases where this was used, it was used incorrectly; customers_whole
is the field that contains the customer's pricing group.
- fixed sorting by customers_whole field in admin->customers->customers
- Updated the following files to 1.3.9h:
admin/includes/modules/product/collect_info.php
admin/attributes_controller.php
admin/products_price_manager.php (trivial)
admin/includes/modules/product/preview_info.php
admin/includes/modules/category_product_listing.php (trivial)
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
swguy
Submitted version 1.9 (for 1.3.9h) with the following fixes:
Scott,
will this work if 'Group Pricing' is installed in 1.3.9h (was included in the standard ZC install) - refer reason for question - excerpt from previous 'unanswered' post on the subject. (not sure why this wasn't responded to - posted twice over 3 week period).
Quote:
I have recently installed Dual Pricing - Wholesale Pricing - I am running v1.3.9h
Zen CartŪ Versions v1.3.9
Original Author romanus
Last Updated by jackie.taferner - 10 Aug 2011
Downloads 29,159
http://www.zen-cart.com/downloads.php?do=file&id=74
I have installed it twice - or over installed it / re-installed it and I still cannot get it to work at all - NOTHING shows up in admin under any section.
I note this in the readme file "THIS REPLACES GROUP PRICING. IF YOU USE GROUP PRICING THEN DON'T USE THIS."
I am not using Group Pricing, i.e. I have never installed it but it shows up under Customers in Admin so I can only assume it was part of the Zencart package.
Additionally I note a file for admin called 'easypopulate.php' .... does this mean that for this Plug-in to work one has to have the Easy Populate plug-in installed also ?? I can't find anything in the readme file to suggest that.
Looking for some help here :)
cheers,
Mike
-
Re: DUAL Pricing version 2
There's no particular reason why you can't run both.
-
Re: DUAL Pricing version 2
Hi,
Is Dual Pricing v2 compatible with v1.50?
Many thanks!
-
Re: DUAL Pricing version 2
Hi @ralberts and welcome to the Zen Cart forum. When you look at the plugins page for a plugin, you'll notice for each version of the plugins, there's a list of Zen Cart versions it works with. So for my update (and all prior updates), since the 1.5 box is not checked, it hasn't been tested with 1.5.
-
Re: DUAL Pricing version 2
Hi swguy,
1. Do you ever sleep?
2. Thanks for having such infinite patience with newbies like me!
Do you have any idea when the 1.50 version would be ready?
Many thanks!
-
Re: DUAL Pricing version 2
Quote:
Originally Posted by
twitchtoo
The current Dual Pricing version with all of the updates in this thread are essentially what my version is based on. Obviously I recommend using mine ;) I'll be dedicating Thursday - Saturday of this week to finalizing the new wholesale pricing module with some fancy name and instructions... Then I'll start on a full 1.5 version next week. I have my own site running a super basic version of wholesale with 1.5 without any problems :)
And for those that have been following this thread, yes my life went for a ########, I'm getting back on my feet now, father first, programmer second. Any donations this time around would be much appreciated I'm flying solo now.
Twitch.
thanks for getting back to me. sorry only starting following thread recently but sounds like you in a good place now, speaking from the point of view of a very stressed mum alot of the time. Might hang on to see your new version I think, good on ya. :smile:
-
Re: DUAL Pricing v2
Anybody had the problem where the wholesale price and QTY discounts does not work together. If I set a wholesale price and a QTY discount on the same product, the wholesaler ends up paying the QTY discount price. If there is no QTY discount for a product then there is no problem.
-
Re: DUAL Pricing v2
Quote:
Originally Posted by
pietpetoors
Anybody had the problem where the wholesale price and QTY discounts does not work together. If I set a wholesale price and a QTY discount on the same product, the wholesaler ends up paying the QTY discount price. If there is no QTY discount for a product then there is no problem.
This can be filtered out with my version, same with wholesale filters for discount coupons, shipping etc...
Twitch.
-
Re: DUAL Pricing v2
I think all the native pricing mechanisms (sales, specials, quantity discount) take priority over wholesale pricing with Dual Pricing (IIRC).
-
Re: DUAL Pricing v2
First time in the forums - I'm a little nervous...
We are on ZC 1.3.9h with Dual Pricing 1.8 (and also Hidden Wholesale)
This addon is great! - I just need to make a little tweak and can't figure out how to do it...
Some of our products have both retail and wholesale prices - these products display both retail and wholesale prices to wholesale customers like this -
Retail Price: $6.00
Wholesale Price: $3.00
perfect!
Some of our products have only a wholesale price - these products display to wholesale customers like this -
Retail Price:
Wholesale Price: $3.00
that's good too!
But our products that have only a retail price - these products display to wholesale customers like this -
Retail Price: $6.00
Wholesale Price: $6.00
this is not good...
How can I change tpl_product_info_display.php to make the wholesale price in this case display as blank?
Be specific please - I'm an sql novice :blush:
Thanks so much for your time and assistance
-
Re: DUAL Pricing v2
Welcome to the Zen Cart forum, @theshamanswife. I actually wouldn't recommend the change you're looking to do - you'll get calls from wholesalers asking where their price is.
-
Re: DUAL Pricing v2
Thanks for the quick response!
Ideally, I would like our products to display to our wholesale customers like this:
If there is both a retail and wholesale price -
Retail Price: $6.00
Wholesale Price: $3.00
If there is only a wholesale price -
Wholesale Price: $3.00
If there is only a retail price -
Retail Price: $6.00
I believe this would eliminate any confusion for our customers.
But... I figured this would be more complicated for me to implement, so I was trying to come up with an easier acceptable solution...
-
Re: DUAL Pricing v2
I know that's what you want. What I'm telling you is that it's better to have a consistent display. If you want to display both, display both all the time.
-
Re: DUAL Pricing v2
Have anybody else tested this plugin in 1.5.1 yet?
I loaded Dual Pricing Version: 1.9 to my ZenCart 1.5.1 and so far did not experience any problems.
I am just concerned that I might overlooked some problems so if somebody else experienced problems in 1.5.1 I would appreciate if you can warn me, but so far mine is running fine.
-
Re: DUAL Pricing v2
This mod overwrites a number of core files. Did you do all the merges?
-
Re: DUAL Pricing v2
Hi,
I have a problem with dual pricing and I need help on how this module works. How do I set "Wholesale" to a customers since I don't see any option in Admin > Customers > Customers. I am new to this Zen Cart so need your help.
Thanks,
Jim
-
Re: DUAL Pricing v2
Hi @e3jimc and welcome to the Zen Cart forum. Go to admin->customers->group pricing and add a wholesale pricing group. Then in admin->customers->customers->edit, set the customers you want to change pricing for to that group (the pricing group is at the bottom of the page). Then they'll get the wholesale price.
-
Re: DUAL Pricing v2
Hi @swguy thanks for the quick reply. I'll try doing that.
Thanks
-
Re: DUAL Pricing v2
One more thing, how do I display the Wholesale Price?
-
Re: DUAL Pricing v2
It displays automatically for wholesalers.
-
Re: DUAL Pricing v2
@swguy I don't why its not showing in the site that I am working on right now. I don't know what I missed.
Is it OK if you check it for me?
Thanks
-
Re: DUAL Pricing v2
I am having troubles with this mod since I upgraded my client to v1.5.1 - all files have been merged and the mod is calculating....but it is throwing the wrong amounts for the discounts. For example - in this order test I see the following, the wholesale discount should be 50% - so the Group Discount should essentially be $12.50 - the weird thing is the tax calculation seems to be working off the CORRECT discount and not the discount shown below - any ideas what could be causing this..
Sub-Total: $24.99
Flat Rate Ground Shipping (Ground Shipping): $8.99
Group Discount: -$13.37
NJ TAX 7.0%: $0.87
Total: $21.48
-
Re: DUAL Pricing v2
Dual Pricing for Zen Cart 1.5 will be available for download soon.
It includes fixes for the attribute trade pricing and is cleaned up a bit for easier future upgrades.
Will post here when it is ready for download. Stay tuned!
-
Re: DUAL Pricing v2
Must be something with the percentage because I only use "actual price" and with actual price it works fine
-
Re: DUAL Pricing v2
The new Dual Pricing module is now available for download: http://www.zen-cart.com/downloads.php?do=file&id=74
-
Re: DUAL Pricing v2
I just loaded your newest version for 1.5 and it appears to be working except for one issue. I want the wholesale to only show the wholesale prices. Currently I have a retail side set up with 15 and 20 percent discounts. The wholes side is showing the wholes prices but with the discounts on top of the wholesale prices. How can I turn off the discounts offered to teh retail customers and only show the wholesale prices I inserted in the products page.
-
Re: DUAL Pricing v2
There's a couple of problems in the new version with the product price manager - at first it was throwing a sql error: line 149 should be products_price_w=:priceW:,
but it does not update the price. I've never worked with this particular file and don't know how to fix that.
Also it's pulling in TEXT_PRICE_W with no corresponding language definition for the product price manager. I added this line to the languages/english/extra_definitions/dual_pricing_text.php to pull that in rather than add it to an existing core file: define('TEXT_PRICE_W', 'Wholesale Price');
I was also sure that one of the old problems from the previous version still existed with comments mixed in with sql somewhere that threw an error but now I can't see where I made the change.
-
Re: DUAL Pricing v2
Sorry, I did a file compare and found the problem in that file as well. Line 441 left out the wholesale price - should be p.products_price, p.products_price_w, p.products_date_available, Jackie, shall I send you my files? I think we should wait a while longer before putting up a new version.
-
Re: DUAL Pricing v2
Thanks for fixing those problems Delia, please PM your new files to me when you have a chance.
donhorn, try making the changes suggested in post #877 & 878:
http://www.zen-cart.com/showthread.p...49#post1070149
I plan to get as many fixes as I can into the next release (2.1). If anyone else has fixes/suggestions please let us know!
-
Re: Dual Pricing v 2.0
I have installed the Dual prices (Wholesale/Retail Pricing) plugin (v2.0) into my store (v1.5.1). It seems to be working well and is really useful, but I wish it had a way for customers to be able to request the wholesale option when they create an account. That way, it would expedite the authorization, rather than have them send another e-mail to request it. Is there an easy way I could edit the Create Account Page to add that option to it so that when they log in they see the wholesale prices.
Also I have installed the Add Customers from Admin plugin (v2.0.2) to my store and would like to add the Wholesale/Retail pricing option to the add customer form that that app generates. Could someone walk me through which files I need to edit and in what way so that it is in synch with Dual Prices?
I got this from the from the Add_Customer forum:
"...to add a Wholesale/Retail switch (and associated database manipulations) to this plugin, you'll need to modify:
/YOUR_ADMIN/add_customers.php: Add a table-row to display (I'm guessing) a checkbox field that identifies whether (checked) or not (unchecked) the customer is a wholesale one.
/YOUR_ADMIN/add_customers_backend.php: Update the insert_customer function to check for the presence (i.e. checked) of the wholesale-customer $_POST variable and set the associated field in the required table of the database.
/YOUR_ADMIN/includes/languages/english/add_customers.php: Add whatever label you want to have associated with the Wholesale/Retail checkbox. "
I'm not a programmer and I'm still unclear about how to do this. Any help is appreciated.
Thanks go out to all those folks that make this such a great application.
Tom
-
Re: Dual Pricing v 2.0
Tom, you might consider installing "Extra Fields on Customer Sign Up": http://www.zen-cart.com/downloads.php?do=file&id=1137
It doesn't have radio buttons, but it will be a great starting point. In addition, you could use one of the text fields so customers can enter their Reseller #
You'll find more helpful tips on this forum thread: http://www.zen-cart.com/showthread.p...569#post994569
-
Re: Dual Pricing v 2.0
For those of you looking for a working upgrade, I've uploaded the latest work-in-progress here.
Do not install this on a live site!
Please install on a test site and provide feedback here so I can (eventually) post a fully working version to the Add-ons section.
http://jtwebsitedesign.net/zen/dual_pricing_2.1.zip
-
Limiting categories for wholesale customers?
Been searching the forums for a while now but cant find a similar question: I installed and am using dual pricing with success. All is fine but it would be nice if I could limit my wholesale customers to see only certain categories of products (we only wholesale the products that we manufacture, but have many other products in the online store. The problem is that the wholesale customers want to order these other products in large quantities - that we don't keep - and at reduced prices - which is not possible). I guess this is a tall order... might end up doing a seperate catalog just for wholesale.... Any ideas from the experts out there?
-
Re: Limiting categories for wholesale customers?
Quote:
Originally Posted by
Francois
Been searching the forums for a while now but cant find a similar question: I installed and am using dual pricing with success. All is fine but it would be nice if I could limit my wholesale customers to see only certain categories of products (we only wholesale the products that we manufacture, but have many other products in the online store. The problem is that the wholesale customers want to order these other products in large quantities - that we don't keep - and at reduced prices - which is not possible). I guess this is a tall order... might end up doing a seperate catalog just for wholesale.... Any ideas from the experts out there?
Oh, and if I can add to my wish list, it would be nice to offer wholesale customers completely different shipping method options.
-
Re: louis vuitton shoulder bag on www.louisvuittonsalesstoreus.com
Simple question does this work with V1.9.h?
AndyB
-
Re: DUAL Pricing v2
OK I put the last requested under the wrong heading.
Does the 'DUAL Pricing v2' work with V1.3.9h?
AndyB
-
Re: DUAL Pricing version 2
How do you initiate the process of integrating zen-cart with the amazon webstore?
-
Re: DUAL Pricing version 2
@Francois,
You may want to try the Hidden Wholesale module. Essentially, any product with Retail price of $0 will be hidden from retail customers but will be shown to wholesalers. http://www.zen-cart.com/downloads.php?do=file&id=963
I haven't tested it, but I think you could hide shipping options with the following code (just paste inside the shipping module file):
Code:
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0') {
//wholesale customers will see this content
} else {
//retail customers will see this content
}