WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Bakery: Small Shop Module (ORIGINAL TOPIC)
  • Print
Pages: 1 ... 9 10 [11] 12 13 ... 34   Go Down

Author Topic: Bakery: Small Shop Module (ORIGINAL TOPIC)  (Read 577228 times)

Ogierini

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #250 on: September 21, 2008, 08:05:16 PM »
Jan,
Thank you!
 It was that simple :roll: change page language.

greetz!
Irene
Logged

Offline mikejd

  • Posts: 251
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #251 on: September 22, 2008, 11:15:41 AM »
I have a query about implementing categories with Bakery.

The website says to use different pages or sub-pages. Presumably this would mean each category displaying on a separate page. I would like to display the categories on the same page, beneath each other. I tried by using several sections of Bakery on the same page,, one for each category, but this generated many error messages due to variables being declared more than once on the page. Is there any way to do this?

Mike
Logged

nikikon

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #252 on: September 22, 2008, 11:37:21 AM »
Thank you Christoph!!

Quote
Ok, give them Post Code (modify all language strings in the language file /modules/bakery/languages/EN.php)
this worked, thank you!

Quote
Btw, could you translate Bakery to Greek? Would be great!
I am not a programmer so I am not sure how to help. If you give me directions :-)
Logged

freeSbee

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #253 on: September 22, 2008, 01:40:54 PM »
Hi Niki

Quote from: nikikon on September 22, 2008, 11:37:21 AM
I am not a programmer so I am not sure how to help. If you give me directions :-)

Do it the same way you did with the "Postal Code" example!

1. Make a copy of EN.php
2. Replace all English language strings by the corresponding Greek ones.
    Eg. replace $MOD_BAKERY['TXT_SETTINGS'] = 'Settings'; by $MOD_BAKERY['TXT_SETTINGS'] = 'Ρυθμίσεις';
3. Save it using utf-8 charset encoding and rename it for Bakery use to GR.php or for forum upload to GR.txt.

This is the example of the WebsiteBaker Greek language file.

Regards Christoph
Logged

nikikon

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #254 on: September 22, 2008, 01:49:44 PM »
Ok, Christoph, it is not difficult, I will do this for you!
Logged

freeSbee

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #255 on: September 22, 2008, 01:59:47 PM »
Great! I am looking forward to your file!
Thank you for giving something back to the community.

Regards Christoph
Logged

freeSbee

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #256 on: September 22, 2008, 02:26:13 PM »
Quote from: mikejd on September 22, 2008, 11:15:41 AM
The website says to use different pages or sub-pages. Presumably this would mean each category displaying on a separate page. I would like to display the categories on the same page, beneath each other. I tried by using several sections of Bakery on the same page,, one for each category, but this generated many error messages due to variables being declared more than once on the page. Is there any way to do this?

Hi Mike

I fixed it. It will make part of the next version.
But don't wait until then! Just replace your view.php file by the attached one and rename it to view.php. Hope this helps!

Regards Christoph

[gelöscht durch Administrator]
Logged

Offline mikejd

  • Posts: 251
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #257 on: September 22, 2008, 02:51:22 PM »
Thanks Christophe.

I'll try it and let you know if there is any problem.

Mike

Edit on 23/09/08 - That seems to have sorted the problem, again many thanks.
« Last Edit: September 23, 2008, 11:21:52 AM by mikejd »
Logged

Ogierini

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #258 on: September 24, 2008, 01:08:33 PM »
Hi there,

I have a question,

per order I would like to have one single amount for the sending costs/'verzendkosten'
So I have selected in page instellingen

Verzendkosten Instellingen:   
BTW percentage Verzendkosten: 19  %
Geen verzendkosten bij bedragen boven de: 250 EUR  Vertel de klant over de verzendkosten limieten
Verzendkosten gebaseerd op:  Een vast bedrag (a fixed price)
 
Verzendkosten binnenland:2.50  EUR   
Verzendkosten buitenland:  2.50 EUR   



But he counts the sending cost per item and not per shipment.

????

I did put it in the ad product area as well, but when I remove this, the reseult remeans the same.

And why is the module still in testing phase? The results are good further what I read here....


greets Irene
Logged

freeSbee

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #259 on: September 24, 2008, 06:09:25 PM »
Quote from: mikejd on September 22, 2008, 02:51:22 PM
I'll try it and let you know if there is any problem.
...
Edit on 23/09/08 - That seems to have sorted the problem, again many thanks.

Hi Mike

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! Sorry about that!

Regards Christoph
Logged

freeSbee

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #260 on: September 24, 2008, 08:56:12 PM »

@ Ogierini

Quote from: Ogierini on September 24, 2008, 01:08:33 PM
per order I would like to have one single amount for the sending costs/'verzendkosten'
...
But he counts the sending cost per item and not per shipment.

Hi Irene

http://www.bakery-shop.ch/#shipping

1. Set "Shipping based on..." to "a flat amount"
2. Leave "Shipping per item" blank.

Quote from: Ogierini on September 24, 2008, 01:08:33 PM
And why is the module still in testing phase? The results are good further what I read here....
Yes, they are. But I assume that Bakery still has some minor bugs...

Regards Christoph
Logged

Offline Boudi

  • Posts: 1190
  • Gender: Male
  • //o_-\\
    • Yze Webdesign
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #261 on: September 24, 2008, 11:10:21 PM »
Hi there,

First of all: great shop with lots of potential. More and more the shop is growing. So keep up the good work!

But I stick with a question:

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.

In this case the shop is dutch, but the website has 4 languages. In the other languages the visitors watch the shop in Dutch too.

Is there some way to avoid this issue? Otherwise the shop seems useless on a multilanguage website.

Greetz
Boudi

Logged
...:: Bake the Unbakable ::...

cthamer

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #262 on: September 25, 2008, 01:32:32 AM »
Hello freeSbee

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.

I am going to do this for a client but it would be nice to have it standard in the cart.

In view_summary.php you have:

if($cust_country == $setting_shop_country) {
    // Loop through ordered items
    for($i = 1; $i <= sizeof($items); $i++) {
        if ($setting_tax_included == "included") {
            // Calculate tax amount for prices including tax (brutto)
            $sales_tax = $sales_tax + $items[$i]['price'] * $items[$i]['quantity'] * $items[$i]['tax_rate'] / (100 + $items[$i]['tax_rate']);
        }
        else {
            // Calculate tax amount for prices excluding tax (netto)
            $sales_tax = $sales_tax + $items[$i]['price'] * $items[$i]['quantity'] / 100 * $items[$i]['tax_rate'];
        }
        // Get tax rate(s) for display
        $f_tax_rate_array[] = number_format($items[$i]['tax_rate'],1);
    }
}

If you added a state field to the general settings you could duplicate it as:

if($cust_state == $setting_shop_state) {
    // Loop through ordered items
       ...
Wait that wouldn't work as you don't want to charge all states tax in the US so you would change the condition to:

if(($cust_country == $setting_shop_country && $cust_country != 'USA' ) || ($cust_state == $setting_shop_state && $cust_country == 'USA')) {... // USA would be whatever code you are using for the US

Am I missing any other areas of code that would need to be changed?

Best regards,

Christian
« Last Edit: September 25, 2008, 02:01:11 AM by cthamer »
Logged

cthamer

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #263 on: September 25, 2008, 01:59:31 AM »
BTW before I say anything else great job with the module.

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.

I realize you can go to an existing page in which you have already modified the header for example and choose to save that to all other pages which is very helpful by the way. But being able to change the default values would be a big improvement for people that are changing the look of the cart to work with a custom template.
« Last Edit: September 25, 2008, 02:01:45 AM by cthamer »
Logged

cthamer

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #264 on: September 25, 2008, 02:21:57 AM »
freeSbee,

Ok one last suggestion while my mind is still on your module then I will leave you alone.

I have been trying to get your module to fit into my existing template. 75 percent of the work can be done by modifying your frontend.css file. Thanks for the good job on that. However in the other 25% it is necessary to modify your code to get things to layout correctly in some cases.

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.

For example in the view_cart.php file I added the following just before the start of the output (and of course the closing div in the appropriate place).
echo "\n<div style='float: left; width: 650px'>\n";
That could be changed to echo "\n<div class='cart_wrapper'>\n"; with cart_wrapper being set to
.cart_wrapper { /* placeholder for style statements*/ } in the frontend.css file. Actually as I am typing this I am looking at the module code and the wrapper may belong in view.php instead since everything is output through that file. Or maybe a wrapper for the whole shebang and for each section. I am not sure without playing around with it a little longer.

Anyway this would make integrating Bakery in a custom template much easier as even more of the layout could be controlled directly through frontend.css.

No more comments from me today. I promise.

Christian

addendum - I went ahead and did this with the view.php file and it worked out fine. It was necessary to echo the closing div tag before each of your return statements.
« Last Edit: September 25, 2008, 03:19:54 AM by cthamer »
Logged

freeSbee

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #265 on: September 25, 2008, 10:28:11 AM »
@ 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.

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
« Last Edit: September 25, 2008, 10:30:08 AM by freeSbee »
Logged

Offline mikejd

  • Posts: 251
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #266 on: September 25, 2008, 11:32:31 AM »
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!

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
Logged

freeSbee

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #267 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.
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.
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.
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.
I appreciate your comments and the way you think proactively - thanks!

Regards Christoph
Logged

freeSbee

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #268 on: September 25, 2008, 01:40:06 PM »

@ 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?

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
Logged

cthamer

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #269 on: September 26, 2008, 01:38:14 AM »
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.
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.

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
Logged

freeSbee

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #270 on: September 26, 2008, 09:42:00 AM »
Hi Christian

This is just great!
Im looking forward to your modifications! Thanks a lot for contributing to Bakery!

Regards
Christoph
Logged

tot2ivn

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #271 on: September 29, 2008, 05:55:56 PM »
Hi,

It's very nice to have this module working. I've been waiting for long. BTW, I'd like to ask if there is a way to group products / items together ?
Logged

nikikon

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #272 on: September 29, 2008, 06:14:52 PM »
hi Christoph,
as promised:

http://intelligentq.net/NOTES/GR.php

hope it works. let me know when you include it in bakery to check it again.
thank you!!
Logged

freeSbee

  • Guest
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #273 on: September 29, 2008, 09:07:20 PM »

@ tot2ivn

Quote from: tot2ivn on September 29, 2008, 05:55:56 PM
I'd like to ask if there is a way to group products / items together ?

http://www.bakery-shop.ch/#categories
Logged

Offline StefanRSA

  • Posts: 97
  • Gender: Male
  • Just Me... Baking...
    • THE HOST
Re: Bakery: Small Shop Module (ORIGINAL TOPIC)
« Reply #274 on: September 30, 2008, 12:39:17 PM »
Hi Christoph...

Me and my big mouth... I realy want to create a classified module and know that the guys/girls will buzz about it as soon as it sees the light... I am just wondering... Do you think it will be very difficult to make the "shops backend" (Admin section to populate the shop) available for registered members to  create their own shop???

Can a person set access level so that every registered user can create his own bakery shop???

Or am I trying to press blood out of a stone?
« Last Edit: September 30, 2008, 12:42:37 PM by StefanRSA »
Logged
How can the sky be the limit? There is much more behind the sky!!!

  • Print
Pages: 1 ... 9 10 [11] 12 13 ... 34   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Bakery: Small Shop Module (ORIGINAL TOPIC)
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2