php-general Digest 31 Dec 2012 08:31:53 -0000 Issue 8080

Topics (messages 319973 through 319974):

Re: how to build multilingual e-commerce website
        319973 by: Sachin Raut

Shopping Cart Discount System
        319974 by: Karl DeSaulniers

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Thanks all for your suggestions. I have decided to go through these 2 books
& i will also talk to Magento developers.

Once again thanks for your input

regards
Sachin Raut

On Sat, Dec 29, 2012 at 9:20 AM, tamouse mailing lists <
tamouse.li...@gmail.com> wrote:

>  On Fri, Dec 28, 2012 at 5:19 AM, Sachin Raut <imsachinr...@gmail.com>
> wrote:
> > Dear Friends,
> >
> > I have to develop multilingual e-commerce (clothing) website. Could
> anyone
> > who has developed these kind of sites before guide me on how to start the
> > development or recommend any tutorial / book for developing these kind of
> > sites?
> >
> > Would really appreciate any inut regarding this.
> >
> > regards
> > Sachin Raut
>
>
> There's this at O'Reilly: "Building eCommerce Applications"
> http://shop.oreilly.com/product/0636920023098.do
>
> And this at Amazon: "Effortless E-Commerce with PHP and MySQL" by
> Larry Ullman http://amzn.com/0321656229
>
> Also, not really knowing how much you need to do yourself, you could
> probably get a leg up using existing frameworks and such.
>
> The multilingual aspects will certainly be tricky. Gettext is sort of
> the standard for doing multilingual things, but in and of itself
> doesn't really provide much help in understanding *how* to do
> multilingual right, and can be problematic. Some frameworks do support
> multilingual sites; I know drupal does, for example, and includes
> quite a lot of other things that can help you build an e-commerce site
> rather quickly, but drupal itself has a rather steep learning curve.
>
> Passages of just plain text aren't that difficult; it's when you start
> constructing displayed text dynamically that it will be trickier, for
> certain.
>
> Just thinking off the top of my head; you will likely need something
> other than just gettext with it's separate language files for things
> like product descriptions. I think it gets rather difficult, and
> probably bad form, to have your separate strings in files in your code
> base linked to data base entries; simpler just to store the various
> multilingual data base bits in the data base itself. But you can see
> how complex it gets.
>
> At any rate, I hope you have a fair bit of experience in building
> dynamic internet sites already, this is not going to be easy.
>

--- End Message ---
--- Begin Message ---
Hello Everyone,
Hope all are well. Quick and hopefully painless question.
Is there any examples on how to build a discount system
into your shopping cart out there that anyone knows of?
I am using MySQL and PHP. I have built one of my own so far,
but am having trouble making sense of what goes where.

For example. If a product has miscellaneous charges,
lets say.. glitter is extra on your shirt.
How is discounts applied? I mean, as far as discounts go,
lets say its 20% a shirt and this shirt has glitter.
Is it best practice to apply the discount to just the shirt
or the shirt and glitter as a combo discount.
I know this is somewhat dependent on the owners choice
of what he/she wants to give the discount on,
but my question is of the programing of it.
Do I build conditions for the shirt to get a discount applied
then the miscellaneous charges, or combine the totals of the two,
then apply the discount to the sum?

Then lets say there is a cart discount also being applied.
Is it best practice to apply this to the total of items then
add the shipping, rush charges and tax, or to the total of the whole cart including shipping, rush charges then add the tax after applying the discount?

Sorry for the run-on question, hope this makes sense enough to merit help.

HNY,

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

PS: Because this question could be answered by either database or general, is the only reason for the double post.
Wont be making a habit of it.. :)

--- End Message ---

Reply via email to