WebsiteBaker Support (2.8.x) > Bakery Shop
Bakery: Small Shop Module (ORIGINAL TOPIC)
freeSbee:
@ Boudi
--- Quote from: Boudi on September 24, 2008, 11:10:21 PM ---At this moment I'm working on a multilanguage website. The problem that I'm facing is that the shop only will show 1 language, no matter which language I choose on the website itself.
--- End quote ---
Hi Boudi
Bakery does not support multilingual websites by default.
To enable two shop languages install a second Bakery module on the same WebsiteBaker installation. Since WebsiteBaker would not accept a second module with the same name and since two equal modules would mess up they must have different names.
Rename the second module Bakery, eg. first shop is called "bakery" and second shop you could call "bakery_de" or "bakery_en" or whatever makes sense to you.
Redo it for other languages.
Keep in mind you have to rename the directory itself AND all module names in the code of ALL files where ever they occur! Please note that the names are case-sensitive (bakery != Bakery != BAKERY)
I have not tested nor experienced it neither! Please report to the forum of your experiences.
Regards Christoph
mikejd:
Hi Christophe,
Thanks for the update
--- Quote ---I have just made some more tests - and I don't think it will be a good idea to add more than one Bakery section to a page... Each section generates a cart etc.; eg. with 2 sections you'll get 2 carts on the same page! ...and it does not look very nice!
--- End quote ---
I guess this would mean I have to have a separate page for each category of product. But following on from your comment above would this then mean a separate cart generated by each category and I would not be able to add products from more than one category to the same cart?
regards,
Mike
freeSbee:
@cthamer
Hi Christian
Thanks a lot for testing and your suggestions!
--- Quote from: cthamer on September 25, 2008, 01:32:32 AM ---I saw a few messages earlier in the forum for tax rates in the US. It is necessary here in the US to charge sales tax to orders shipping to the same state of the store.
The cart currently has the option to charge tax based on country. It seems a simple thing to replicate that for orders placed in the US with the state being compared rather than country.
--- End quote ---
If you are not selling outside the USA try this:
https://forum.WebsiteBaker.org/index.php/topic,7834.msg57755.html#msg57755
I would not use the $cust_state var since this value is generated by user input and may contain typos. Best would be a state drop-down list in the address form (similar to the country list) where users make their choice.
--- Quote from: cthamer on September 25, 2008, 01:59:31 AM ---I just thought of another small change that would be nice. In add.php you set the default values for header, item loop, footer, etc. I would be helpful if those default values could be changed. That way users would not have to update those fields for every product. If you replicated the section in page settings that sets these into general settings then saved that in the database as the default values for new pages users would be able to save a bit of time when creating new Bakery pages.
--- End quote ---
Why dont you modify the add.php file? This way the shop admin always gets your (modified) default template!
--- Quote from: cthamer on September 25, 2008, 02:21:57 AM ---One very helpful addition to your layout would be a div wrapper around each section of code with a corresponding entry in the CSS file. The entry for each wrapper should blank or contain just enough style definitions to keep your current layout from breaking.
--- End quote ---
Sounds like a good idea to me! I have had it in mind too. Probably will implement it in the next version...
--- Quote from: cthamer on September 25, 2008, 02:21:57 AM ---No more comments from me today. I promise.
--- End quote ---
I appreciate your comments and the way you think proactively - thanks!
Regards Christoph
freeSbee:
@ mikejd
--- Quote from: mikejd on September 25, 2008, 11:32:31 AM ---But following on from your comment above would this then mean a separate cart generated by each category and I would not be able to add products from more than one category to the same cart?
--- End quote ---
Hi Mike
No, this would not make sense at all...
Now, just install Bakery, give it a trial and you will see and learn by doing!
Regards Christoph
cthamer:
--- Quote from: freeSbee on September 25, 2008, 01:37:42 PM ---
@cthamer
Hi Christian
Thanks a lot for testing and your suggestions!
--- Quote from: cthamer on September 25, 2008, 01:32:32 AM ---I saw a few messages earlier in the forum for tax rates in the US. It is necessary here in the US to charge sales tax to orders shipping to the same state of the store.
The cart currently has the option to charge tax based on country. It seems a simple thing to replicate that for orders placed in the US with the state being compared rather than country.
--- End quote ---
If you are not selling outside the USA try this:
https://forum.WebsiteBaker.org/index.php/topic,7834.msg57755.html#msg57755
I would not use the $cust_state var since this value is generated by user input and may contain typos. Best would be a state drop-down list in the address form (similar to the country list) where users make their choice.
--- End quote ---
Christoph,
I have went ahead and update your module so users in the US can set shipping by the state. I didn't use the hack you suggested in the forum link. I almost did but then thought why limit the resulting product to selling only in the US.
I conformed to your current code style and format. I even created new language files which is a rare thing for me to do. I also updated the install.php file to add my new database field 'shop_state'. If you are interested I can send you my updates. I have just barely tested it out but it seems to be working just fine.
Let me know.
Christian
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version