Zen Follower
- Join Date:
- Jun 2006
- Location:
- Midlothian, Virginia, United States
- Posts:
- 110
- Plugin Contributions:
- 0
DUAL Pricing version 2 for 1.3.0.2 Donations
any clue on which file it would have replaced to ditch the meta tags?
Views: 24,331
Zen Follower
any clue on which file it would have replaced to ditch the meta tags?
Sensei
Here's a version to test ... this is a straight upgrade of the code from circa v1.2.x to circa v1.3.0.x
Still needs some testing at the attribute level.
No structural database changes, so no need to run the .sql file if you already had the old version installed. Thus, it your old data will be retained as well.
Totally Zenned
DrByte:
Here's a version to test ... this is a straight upgrade of the code from circa v1.2.x to circa v1.3.0.x
Still needs some testing at the attribute level.
No structural database changes, so no need to run the .sql file if you already had the old version installed. Thus, it your old data will be retained as well.
Has anyone tested this out yet?
Thanks!
New Zenner
Danielle:
Has anyone tested this out yet?
Thanks!
I've put it on and it works great. :)
However, the products have no attributes as I need to get attributes by stock working. Have read a lot and seen mention of it not working... will try it now.
The thing is, with retail our prices need to include VAT at 17.5%. With wholesale we need the cheaper wholesale price, with no VAT displayed until the user gets to the shopping cart.
So that's Price R, inc VAT, and price W, excluding VAT. Any ideas how I might get around this?
Many thanks! :lookaroun
Totally Zenned
YellowPostit:
The thing is, with retail our prices need to include VAT at 17.5%. With wholesale we need the cheaper wholesale price, with no VAT displayed until the user gets to the shopping cart.
So that's Price R, inc VAT, and price W, excluding VAT. Any ideas how I might get around this?
Many thanks! :lookaroun
Yikes...no idea on that one, sorry :( I guess you would need to have a new dropdown box to enter the tax class for the wholesale pricing...that part is probably not too hard, but I'm not sure how you'd actually code it...
New Zenner
Danielle:
Yikes...no idea on that one, sorry :( I guess you would need to have a new dropdown box to enter the tax class for the wholesale pricing...that part is probably not too hard, but I'm not sure how you'd actually code it...
No worries - cheers for the reply. :smile: I've got to make some changes to ensure that the customer sees the text "Price includes VAT at 17.5%" for retail/not logged in customers and "Price does not include VAT" on wholesale customers. I think you're right in that a drop down box for wholesale pricing is the way to go.
Incase anyone else is interested I've got Dual Pricing and Stock by Attributes working side by side. I've put through a few test orders as a wholesale customer and a retail customer and both are working just great, so far! I would back up your database and all files before trying though...
Zen Follower
With edit orders installed which works on zencart 1.3.0.2, which I found in the archived contributions when you add a product it adds it at the retail price not the wholesale price , not a big thing but just something for others to note.
This is on a test installation as these are the 2 main mods that I use and needed.
New Zenner
YellowPostit:
No worries - cheers for the reply. :smile: I've got to make some changes to ensure that the customer sees the text "Price includes VAT at 17.5%" for retail/not logged in customers and "Price does not include VAT" on wholesale customers. I think you're right in that a drop down box for wholesale pricing is the way to go.
Incase anyone else is interested I've got Dual Pricing and Stock by Attributes working side by side. I've put through a few test orders as a wholesale customer and a retail customer and both are working just great, so far! I would back up your database and all files before trying though...
Hi YellowPostit
Can you give me an advice how you did that? I got all the time completely different prices if I enable the dual pricing modul. I can't recognize how zen-cart calculates the prices for the different levels such as wholesales and reseller.
I would be pleased if you could give me some advices.
New Zenner
Xdreamer:
Hi YellowPostit
Can you give me an advice how you did that? I got all the time completely different prices if I enable the dual pricing modul. I can't recognize how zen-cart calculates the prices for the different levels such as wholesales and reseller.
I would be pleased if you could give me some advices.
Hi Xdreamer,
I think I installed dual pricing first, and stock by attributes second. I set some prices, set some stock and put through some orders and everything looked good to me.
I've now got almost 300 entries under "Products with Attributes Stock" with two attributes (ex size and colour) and about 7 options to each. The test orders were fine with prices on some products - i'm about to do all of them and will let you know what happens.
Hope it doesn't stop working right now. :cry:
(As for VAT I'm going to code that later on. Everything is going in as excluding VAT, and I'll add it at a different stage throughout depending on the user being retail/wholesale. I'll post what I did and the code, but I'm in no way confident enough to release it as a contribution.)
New Zenner
Thanks for your reply. I am mostly stuck with the VAT costs and the generated prices from the module. Its confusing and I can't follow how they were calculated. My customer isn't working with attributes yet. Just one wholesale price and one or two reseller prices of each product, thats all.
New Zenner
Xdreamer:
Thanks for your reply. I am mostly stuck with the VAT costs and the generated prices from the module. Its confusing and I can't follow how they were calculated. My customer isn't working with attributes yet. Just one wholesale price and one or two reseller prices of each product, thats all.
Oh ok - I think I misunderstood.
I've yet to get a satifactory result from the retail inc VAT, wholesale exc VAT. I was thinking though, what would be cool is if they were the other way around. The dual price (second price) is always the same - no tax option available - so use that as retail price. Then make the normal Zen price with its tax options the wholesale one?
I'm still trying to work it out. I'm leaning towards retail price inc VAT on the Zen price, and wholesale ex VAT on the 'dual' price. Then, somehow at the checkout, add on VAT.
New Zenner
Hi All,
Where can I download and test this new DP mod? Is it expected to work with 1.3.5? I don't see it on the download section of this site.
Thanks,
Bearaman
New Zenner
bearaman:
Hi All,
Where can I download and test this new DP mod? Is it expected to work with 1.3.5? I don't see it on the download section of this site.
Thanks,
Bearaman
It's linked further up the thread I think...
I've got the dual pricing mod working so I can have retail and wholesale prices. However, retail must include VAT and wholesale must exclude VAT until the end of the process.
I have all the retail prices input inc. VAT and all the wholesale prices exc. VAT.
Basically I need to add 17.5% at the end of the process on a seperate line, and then have that VAT added to the total. I've looked through the panel and can't find a way of doing it, so was thinking of adding to the if statements. The if statements check whether customer is retail or wholesale and display the price accordingly.
Any ideas how I could do this on the price displayed while browsing and the cart total?
Many thanks!!
Totally Zenned
DrByte:
Here's a version to test ... this is a straight upgrade of the code from circa v1.2.x to circa v1.3.0.x
Still needs some testing at the attribute level.
No structural database changes, so no need to run the .sql file if you already had the old version installed. Thus, it your old data will be retained as well.
OK, found a bug :schmoll: When trying to copy attributes from one product to another, the following error comes up after you've chosen the product you're copying to and hit the copy to button:
1136 Column count doesn't match value count at row 1
in:
[insert into products_attributes values (0, '15', '1', '5', '0.0000', '+', '0', '1', '0', '+', '0', '0', '1', '', '1', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', '', '', '0.0000', '0', '0.0000', '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.
I'm guessing it's because there was an extra field added into the attributes table, but I don't have a clue what will fix it! Any thoughts? The site I'm working on has products with lots of attributes, so the copy feature would be SO helpful :D
Thanks!
Sensei
can you post the structure of your products_attributes table here?
New Zenner
bearaman:
Hi All,
Where can I download and test this new DP mod? Is it expected to work with 1.3.5? I don't see it on the download section of this site.
Thanks,
Bearaman
I'm bumping Bearaman's questions because I would like to know also. I've read just about every post concerning the Dual Pricing module and don't understand if a newer version is available, does it work with zc 1.3.5, and why such an important module is not part of the core.
Best!
New Zenner
Danielle:
OK, found a bug :schmoll: When trying to copy attributes from one product to another, the following error comes up after you've chosen the product you're copying to and hit the copy to button:
I'm guessing it's because there was an extra field added into the attributes table, but I don't have a clue what will fix it! Any thoughts? The site I'm working on has products with lots of attributes, so the copy feature would be SO helpful :D
Thanks!
Ah-ha, I assumed that problem had come from Stocks By Attributes mod on my 1.3.5 install.
This was inserting a new attribute though, not copying one.
DrByte, this is the structure of my products_attributes table;
Field Type Collation Attributes Null Default Extra Action
products_attributes_id int(11) No auto_increment
products_id int(11) No 0
options_id int(11) No 0
options_values_id int(11) No 0
options_values_price decimal(15,4) No 0.0000
options_values_price_w varchar(150) latin1_swedish_ci Yes 0
price_prefix char(1) latin1_swedish_ci No
products_options_sort_order int(11) No 0
product_attribute_is_free tinyint(1) No 0
products_attributes_weight float No 0
products_attributes_weight_prefix char(1) latin1_swedish_ci No
attributes_display_only tinyint(1) No 0
attributes_default tinyint(1) No 0
attributes_discounted tinyint(1) No 1
attributes_image varchar(64) latin1_swedish_ci Yes NULL
attributes_price_base_included tinyint(1) No 1
attributes_price_onetime decimal(15,4) No 0.0000
attributes_price_factor decimal(15,4) No 0.0000
attributes_price_factor_offset decimal(15,4) No 0.0000
attributes_price_factor_onetime decimal(15,4) No 0.0000
attributes_price_factor_onetime_offset decimal(15,4) No 0.0000
attributes_qty_prices text latin1_swedish_ci Yes NULL
attributes_qty_prices_onetime text latin1_swedish_ci Yes NULL
attributes_price_words decimal(15,4) No 0.0000
attributes_price_words_free int(4) No 0
attributes_price_letters decimal(15,4) No 0.0000
attributes_price_letters_free int(4) No 0
attributes_required tinyint(1) No 0
New Zenner
Now I'm wondering if my database is at fault.
Need to get this site launched so have gone back to doing everything on 1.3.02 (the two essential mods don't work under 1.3.5). Getting the same problem with a clean 1.3.2 install, 1.3.2 database and the mods that worked on 1.3.2.
Totally Zenned
YellowPostit:
Ah-ha, I assumed that problem had come from Stocks By Attributes mod on my 1.3.5 install.
This was inserting a new attribute though, not copying one.
DrByte, this is the structure of my products_attributes table;
Field Type Collation Attributes Null Default Extra Action
products_attributes_id int(11) No auto_increment
products_id int(11) No 0
options_id int(11) No 0
options_values_id int(11) No 0
options_values_price decimal(15,4) No 0.0000
options_values_price_w varchar(150) latin1_swedish_ci Yes 0
price_prefix char(1) latin1_swedish_ci No
products_options_sort_order int(11) No 0
product_attribute_is_free tinyint(1) No 0
products_attributes_weight float No 0
products_attributes_weight_prefix char(1) latin1_swedish_ci No
attributes_display_only tinyint(1) No 0
attributes_default tinyint(1) No 0
attributes_discounted tinyint(1) No 1
attributes_image varchar(64) latin1_swedish_ci Yes NULL
attributes_price_base_included tinyint(1) No 1
attributes_price_onetime decimal(15,4) No 0.0000
attributes_price_factor decimal(15,4) No 0.0000
attributes_price_factor_offset decimal(15,4) No 0.0000
attributes_price_factor_onetime decimal(15,4) No 0.0000
attributes_price_factor_onetime_offset decimal(15,4) No 0.0000
attributes_qty_prices text latin1_swedish_ci Yes NULL
attributes_qty_prices_onetime text latin1_swedish_ci Yes NULL
attributes_price_words decimal(15,4) No 0.0000
attributes_price_words_free int(4) No 0
attributes_price_letters decimal(15,4) No 0.0000
attributes_price_letters_free int(4) No 0
attributes_required tinyint(1) No 0
Inserting a new attribute is no problem on my site, so it may be the Stock by Attributes that is at fault in your case...
Totally Zenned
DrByte:
can you post the structure of your products_attributes table here?
Here ya go:
products_attributes_id int(11) No
products_id int(11) No 0
options_id int(11) No 0
options_values_id int(11) No 0
options_values_price decimal(15,4) No 0.0000
options_values_price_w varchar(150) Yes 0
price_prefix char(1) No
products_options_sort_order int(11) No 0
product_attribute_is_free tinyint(1) No 0
products_attributes_weight float No 0
products_attributes_weight_prefix char(1) No
attributes_display_only tinyint(1) No 0
attributes_default tinyint(1) No 0
attributes_discounted tinyint(1) No 1
attributes_image varchar(64) Yes NULL
attributes_price_base_included tinyint(1) No 1
attributes_price_onetime decimal(15,4) No 0.0000
attributes_price_factor decimal(15,4) No 0.0000
attributes_price_factor_offset decimal(15,4) No 0.0000
attributes_price_factor_onetime decimal(15,4) No 0.0000
attributes_price_factor_onetime_offset decimal(15,4) No 0.0000
attributes_qty_prices text Yes NULL
attributes_qty_prices_onetime text Yes NULL
attributes_price_words decimal(15,4) No 0.0000
attributes_price_words_free int(4) No 0
attributes_price_letters decimal(15,4) No 0.0000
attributes_price_letters_free int(4) No 0
attributes_required tinyint(1) No 0
Thanks!
Tell staff why this post should be reviewed.