Re: shopping cart

2012-08-08 Thread Greg Skerman
a typical 'simple' shopping cart will have a model arrangement something
like this

Product
Order
Customer

Customer HasMany Order (a customer can make more than one order)
Order HasMany Products (an order contains many products)

Customer signs up then looks at a list of products - on selection of the
products the products are added to the order
on check out the total order value is calculated by multiplying the price
of an individual product by the quanitity, and then summing the total for
each row in the order.

Dead simple and wont deal with stuff like shipping, payment gateways, tax
and what not but that should get you started (your requirements are
very vague so I have no idea if this will suffice for your study exam)

On Thu, Aug 9, 2012 at 2:34 AM, anfuet  wrote:

> Hello everybody.
> I need a very simple shopping cart, but i don't know how i can create a
> shopping cart.
> I know there are some plugins but it is for my study exam.
>
> Can you help me, please?
>
> Here you can find my post in cakephpforum.net: 
> link<http://www.cakephpforum.net/index.php?showtopic=3164&st=0&#entry9178>
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




shopping cart

2012-08-08 Thread anfuet
Hello everybody.
I need a very simple shopping cart, but i don't know how i can create a 
shopping cart.
I know there are some plugins but it is for my study exam.

Can you help me, please?

Here you can find my post in cakephpforum.net: 
link<http://www.cakephpforum.net/index.php?showtopic=3164&st=0&#entry9178>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: MVC design for shopping cart

2012-03-01 Thread Stephen
Also if you've got models setup for taxes and prices etc, I would assume
there would be some relation with the Product model?

If not... to speed things up a little, I would write a few model functions
with some joined queries gathering all the data you need (i.e.
$this->Product->findTaxCode($product, $this->Auth->user('id')); )

Really think about how you can communicate with the models you need in the
most efficient and re-usable way possible.

On 1 March 2012 11:22, Stephen  wrote:

> Why break the MVC system by creating a component where it isn't needed?
> Your cart functionality is 100% directly related to your Product model,
> place a method in that controller, just create a custom route if you want
> to change the URL.
>
> If you want to access the cart information from views, elements, layouts -
> other controllers etc, use requestAction (See my example)
>
> http://pastie.org/private/9etnv6mjbfozscvgpdq
>
> Hope this helps.
>  Cheers
>
> On 29 February 2012 15:37, jeremyharris  wrote:
>
>> I would simply create a component called Cart and add a read() method to
>> just pull the products. Something like this:
>>
>> class CartComponent extends Object {
>> var $components = array('Session');
>>  function read() {
>>  $Product = ClassRegistry::init('Product');
>> $productsInCart = $this->Session->read('Cart');
>>  $cart = array();
>> foreach ($productsInCart as $product) {
>> $cart[] = $Product->read(null, $product);
>>  }
>> return $cart;
>> }
>>  function save($id) {
>> $productsInCart = $this->Session->read('Cart');
>> $productsInCart[] = $id;
>>  return $this->Session->save('Cart', $productsInCart);
>> }
>> }
>>
>> Then you access it from the controller and you're good to go. Technically
>> it's not MVC since the Cart should be a model, but do you really want to
>> write a datasource to pull/save to the Session just for something simple
>> like this? I mean, since there will only ever be *one* cart record (from
>> the eyes of the user) it doesn't seem to make sense to go to all the
>> trouble. Breaking MVC patterns is okay every once in a while :) This
>> component would be easily testable and separate from your controller.
>>
>> On Tuesday, February 28, 2012 1:06:27 PM UTC-8, Christian wrote:
>>>
>>> Hi,
>>>
>>> I'm currently trying to create a shopping cart solution with cake 1.3.
>>> In the current design, only the product id of a chosen product will be
>>> saved in the session, each time the customer lists the cart items, all
>>> information needs to be read out of the database.
>>> My idea was to create a seperated model (no relation to any table)
>>> where all cart calculations can happen in, which can then be used in
>>> several controllers. However, this would mean that this cart class
>>> would need to use several other product related models (product
>>> details, taxes, countrydetails, etc.), which is not easily supported
>>> by cake, since it breaks the MVC model.
>>> The workaround would be to implement the logic in a controller where I
>>> can easily access all models, however, this breaks two other basics,
>>> once the "fat model skinny controller" rule and on the other hand the
>>> code is not easily reusable for other purposes.
>>>
>>> My question is now how where to implement the cart functionality (e.g.
>>> summary price, discount, taxes calculation, etc.) without breaking MVC
>>> but with sticking to "fat model skinny controller" and the re-
>>> usability of my code.
>>>
>>> Thanks,
>>> Christian
>>
>>
>> On Tuesday, February 28, 2012 1:06:27 PM UTC-8, Christian wrote:
>>>
>>> Hi,
>>>
>>> I'm currently trying to create a shopping cart solution with cake 1.3.
>>> In the current design, only the product id of a chosen product will be
>>> saved in the session, each time the customer lists the cart items, all
>>> information needs to be read out of the database.
>>> My idea was to create a seperated model (no relation to any table)
>>> where all cart calculations can happen in, which can then be used in
>>> several controllers. However, this would mean that this cart class
>>> would need to use several other product related models (product
>>> details, taxes, countrydetails, etc.), which is not easily supported
>>> by cake, since it breaks the MVC model.
>>

Re: MVC design for shopping cart

2012-03-01 Thread Stephen
Why break the MVC system by creating a component where it isn't needed?
Your cart functionality is 100% directly related to your Product model,
place a method in that controller, just create a custom route if you want
to change the URL.

If you want to access the cart information from views, elements, layouts -
other controllers etc, use requestAction (See my example)

http://pastie.org/private/9etnv6mjbfozscvgpdq

Hope this helps.
 Cheers

On 29 February 2012 15:37, jeremyharris  wrote:

> I would simply create a component called Cart and add a read() method to
> just pull the products. Something like this:
>
> class CartComponent extends Object {
> var $components = array('Session');
>  function read() {
>  $Product = ClassRegistry::init('Product');
> $productsInCart = $this->Session->read('Cart');
>  $cart = array();
> foreach ($productsInCart as $product) {
> $cart[] = $Product->read(null, $product);
>  }
> return $cart;
> }
>  function save($id) {
> $productsInCart = $this->Session->read('Cart');
> $productsInCart[] = $id;
>  return $this->Session->save('Cart', $productsInCart);
> }
> }
>
> Then you access it from the controller and you're good to go. Technically
> it's not MVC since the Cart should be a model, but do you really want to
> write a datasource to pull/save to the Session just for something simple
> like this? I mean, since there will only ever be *one* cart record (from
> the eyes of the user) it doesn't seem to make sense to go to all the
> trouble. Breaking MVC patterns is okay every once in a while :) This
> component would be easily testable and separate from your controller.
>
> On Tuesday, February 28, 2012 1:06:27 PM UTC-8, Christian wrote:
>>
>> Hi,
>>
>> I'm currently trying to create a shopping cart solution with cake 1.3.
>> In the current design, only the product id of a chosen product will be
>> saved in the session, each time the customer lists the cart items, all
>> information needs to be read out of the database.
>> My idea was to create a seperated model (no relation to any table)
>> where all cart calculations can happen in, which can then be used in
>> several controllers. However, this would mean that this cart class
>> would need to use several other product related models (product
>> details, taxes, countrydetails, etc.), which is not easily supported
>> by cake, since it breaks the MVC model.
>> The workaround would be to implement the logic in a controller where I
>> can easily access all models, however, this breaks two other basics,
>> once the "fat model skinny controller" rule and on the other hand the
>> code is not easily reusable for other purposes.
>>
>> My question is now how where to implement the cart functionality (e.g.
>> summary price, discount, taxes calculation, etc.) without breaking MVC
>> but with sticking to "fat model skinny controller" and the re-
>> usability of my code.
>>
>> Thanks,
>> Christian
>
>
> On Tuesday, February 28, 2012 1:06:27 PM UTC-8, Christian wrote:
>>
>> Hi,
>>
>> I'm currently trying to create a shopping cart solution with cake 1.3.
>> In the current design, only the product id of a chosen product will be
>> saved in the session, each time the customer lists the cart items, all
>> information needs to be read out of the database.
>> My idea was to create a seperated model (no relation to any table)
>> where all cart calculations can happen in, which can then be used in
>> several controllers. However, this would mean that this cart class
>> would need to use several other product related models (product
>> details, taxes, countrydetails, etc.), which is not easily supported
>> by cake, since it breaks the MVC model.
>> The workaround would be to implement the logic in a controller where I
>> can easily access all models, however, this breaks two other basics,
>> once the "fat model skinny controller" rule and on the other hand the
>> code is not easily reusable for other purposes.
>>
>> My question is now how where to implement the cart functionality (e.g.
>> summary price, discount, taxes calculation, etc.) without breaking MVC
>> but with sticking to "fat model skinny controller" and the re-
>> usability of my code.
>>
>> Thanks,
>> Christian
>
>
> On Tuesday, February 28, 2012 1:06:27 PM UTC-8, Christian wrote:
>>
>> Hi,
>>
>> I'm currently trying to create a shopping cart solution with cake 1.3.
>> In the current design, only the produ

Re: MVC design for shopping cart

2012-02-29 Thread jeremyharris
I would simply create a component called Cart and add a read() method to 
just pull the products. Something like this:

class CartComponent extends Object {
var $components = array('Session');
 function read() {
$Product = ClassRegistry::init('Product');
$productsInCart = $this->Session->read('Cart');
$cart = array();
foreach ($productsInCart as $product) {
$cart[] = $Product->read(null, $product);
}
return $cart;
}
 function save($id) {
$productsInCart = $this->Session->read('Cart');
$productsInCart[] = $id;
return $this->Session->save('Cart', $productsInCart);
}
}

Then you access it from the controller and you're good to go. Technically 
it's not MVC since the Cart should be a model, but do you really want to 
write a datasource to pull/save to the Session just for something simple 
like this? I mean, since there will only ever be *one* cart record (from 
the eyes of the user) it doesn't seem to make sense to go to all the 
trouble. Breaking MVC patterns is okay every once in a while :) This 
component would be easily testable and separate from your controller.

On Tuesday, February 28, 2012 1:06:27 PM UTC-8, Christian wrote:
>
> Hi, 
>
> I'm currently trying to create a shopping cart solution with cake 1.3. 
> In the current design, only the product id of a chosen product will be 
> saved in the session, each time the customer lists the cart items, all 
> information needs to be read out of the database. 
> My idea was to create a seperated model (no relation to any table) 
> where all cart calculations can happen in, which can then be used in 
> several controllers. However, this would mean that this cart class 
> would need to use several other product related models (product 
> details, taxes, countrydetails, etc.), which is not easily supported 
> by cake, since it breaks the MVC model. 
> The workaround would be to implement the logic in a controller where I 
> can easily access all models, however, this breaks two other basics, 
> once the "fat model skinny controller" rule and on the other hand the 
> code is not easily reusable for other purposes. 
>
> My question is now how where to implement the cart functionality (e.g. 
> summary price, discount, taxes calculation, etc.) without breaking MVC 
> but with sticking to "fat model skinny controller" and the re- 
> usability of my code. 
>
> Thanks, 
> Christian


On Tuesday, February 28, 2012 1:06:27 PM UTC-8, Christian wrote:
>
> Hi, 
>
> I'm currently trying to create a shopping cart solution with cake 1.3. 
> In the current design, only the product id of a chosen product will be 
> saved in the session, each time the customer lists the cart items, all 
> information needs to be read out of the database. 
> My idea was to create a seperated model (no relation to any table) 
> where all cart calculations can happen in, which can then be used in 
> several controllers. However, this would mean that this cart class 
> would need to use several other product related models (product 
> details, taxes, countrydetails, etc.), which is not easily supported 
> by cake, since it breaks the MVC model. 
> The workaround would be to implement the logic in a controller where I 
> can easily access all models, however, this breaks two other basics, 
> once the "fat model skinny controller" rule and on the other hand the 
> code is not easily reusable for other purposes. 
>
> My question is now how where to implement the cart functionality (e.g. 
> summary price, discount, taxes calculation, etc.) without breaking MVC 
> but with sticking to "fat model skinny controller" and the re- 
> usability of my code. 
>
> Thanks, 
> Christian


On Tuesday, February 28, 2012 1:06:27 PM UTC-8, Christian wrote:
>
> Hi, 
>
> I'm currently trying to create a shopping cart solution with cake 1.3. 
> In the current design, only the product id of a chosen product will be 
> saved in the session, each time the customer lists the cart items, all 
> information needs to be read out of the database. 
> My idea was to create a seperated model (no relation to any table) 
> where all cart calculations can happen in, which can then be used in 
> several controllers. However, this would mean that this cart class 
> would need to use several other product related models (product 
> details, taxes, countrydetails, etc.), which is not easily supported 
> by cake, since it breaks the MVC model. 
> The workaround would be to implement the logic in a controller where I 
> can easily access all models, however, this breaks two other basics, 
> once the "fat model skinny controller" rule and on the other hand the 
> code is not easily reusable for 

Re: MVC design for shopping cart

2012-02-29 Thread Stephen Speakman
Write re-usable query methods in the appropriate models. If you're  
dealing with product id's then use the products controller and any tax  
calculations etc can be handled in a model or if need be component.


Im not sure why you would need a 'cart controller' if you don't have  
cart records.


If you really need a table for this functionality look up temporary  
mysql tables, but i wouldn't recommend using $this->query instead i'd  
write efficent querys and index my tables


My 2 cents...

Sent from my iPhone

On 28 Feb 2012, at 21:06, Christian  wrote:


Hi,

I'm currently trying to create a shopping cart solution with cake 1.3.
In the current design, only the product id of a chosen product will be
saved in the session, each time the customer lists the cart items, all
information needs to be read out of the database.
My idea was to create a seperated model (no relation to any table)
where all cart calculations can happen in, which can then be used in
several controllers. However, this would mean that this cart class
would need to use several other product related models (product
details, taxes, countrydetails, etc.), which is not easily supported
by cake, since it breaks the MVC model.
The workaround would be to implement the logic in a controller where I
can easily access all models, however, this breaks two other basics,
once the "fat model skinny controller" rule and on the other hand the
code is not easily reusable for other purposes.

My question is now how where to implement the cart functionality (e.g.
summary price, discount, taxes calculation, etc.) without breaking MVC
but with sticking to "fat model skinny controller" and the re-
usability of my code.

Thanks,
Christian

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and  
help others with their CakePHP related questions.



To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this  
group at http://groups.google.com/group/cake-php


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.



To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


MVC design for shopping cart

2012-02-28 Thread Christian
Hi,

I'm currently trying to create a shopping cart solution with cake 1.3.
In the current design, only the product id of a chosen product will be
saved in the session, each time the customer lists the cart items, all
information needs to be read out of the database.
My idea was to create a seperated model (no relation to any table)
where all cart calculations can happen in, which can then be used in
several controllers. However, this would mean that this cart class
would need to use several other product related models (product
details, taxes, countrydetails, etc.), which is not easily supported
by cake, since it breaks the MVC model.
The workaround would be to implement the logic in a controller where I
can easily access all models, however, this breaks two other basics,
once the "fat model skinny controller" rule and on the other hand the
code is not easily reusable for other purposes.

My question is now how where to implement the cart functionality (e.g.
summary price, discount, taxes calculation, etc.) without breaking MVC
but with sticking to "fat model skinny controller" and the re-
usability of my code.

Thanks,
Christian

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


ModraCart the easy to use PHP Shopping Cart built on CakePHP is available

2011-01-11 Thread KMScreative
Build on CakePHP 1.3.4, ModraCart is a serious competitor to major
shopping cart platforms. Custom URL's for static pages you create,
category and manufacturer pages, product pages. Customize shipping
options. Accept credit cards and be PA-DSS compliant. Find out more at
http://www.modracart.com";>http://www.modracart.com.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-30 Thread Mike
It's something I'll add at some point.  But Kaching is meant for
people who want to write code.  If you don't then you should be
looking at a something like Magento (www.magentocommerce.com)

On Apr 30, 8:53 am, hoss7  wrote:
> i am new in cakephp mike can you do it for me to convert this source
> to ajax
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-30 Thread Jeremy Burns
Come on Hamed - we're all a bit busy out here.

Jeremy Burns
jeremybu...@me.com
On 30 Apr 2010, at 14:53, hoss7 wrote:

> i am new in cakephp mike can you do it for me to convert this source
> to ajax
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-30 Thread hoss7
i am new in cakephp mike can you do it for me to convert this source
to ajax

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-30 Thread Mike

>From suggestions I've heard, I have moved the Kaching plugin to
github.  So the new URL is http://github.com/mfriesen/kaching-php.  It
doesn't use Ajax, but with a little bit of work you definitely could
change it to do so.

On Apr 29, 10:44 pm, Jeremy Burns  wrote:
> For a shortcut there is Kaching -http://code.google.com/p/kaching-php/- I 
> haven't tried it and don't know to what extent it uses Ajax.
>
> Jeremy Burns
> jeremybu...@me.com
> On 29 Apr 2010, at 21:47, Jonathon Musters wrote:
>
>
>
> > Please do write it for us. And have it slice bread as an extra lol
>
> > On 4/29/10, thatsgreat2345  wrote:
> >> U then make one are we supposed to just write it all for you
>
> >> On Apr 29, 11:54 am, hoss7  wrote:
> >>> i need ajax shopping cart with cakephp
>
> >>> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others
> >>> with their CakePHP related questions.
>
> >>> You received this message because you are subscribed to the Google Groups
> >>> "CakePHP" group.
> >>> To post to this group, send email to cake-php@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> >>> athttp://groups.google.com/group/cake-php?hl=en
>
> >> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> >> with their CakePHP related questions.
>
> >> You received this message because you are subscribed to the Google Groups
> >> "CakePHP" group.
> >> To post to this group, send email to cake-php@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> >>http://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups 
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-29 Thread Jeremy Burns
For a shortcut there is Kaching - http://code.google.com/p/kaching-php/ - I 
haven't tried it and don't know to what extent it uses Ajax.

Jeremy Burns
jeremybu...@me.com
On 29 Apr 2010, at 21:47, Jonathon Musters wrote:

> Please do write it for us. And have it slice bread as an extra lol
> 
> 
> On 4/29/10, thatsgreat2345  wrote:
>> U then make one are we supposed to just write it all for you
>> 
>> On Apr 29, 11:54 am, hoss7  wrote:
>>> i need ajax shopping cart with cakephp
>>> 
>>> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
>>> with their CakePHP related questions.
>>> 
>>> You received this message because you are subscribed to the Google Groups
>>> "CakePHP" group.
>>> To post to this group, send email to cake-php@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>>> athttp://groups.google.com/group/cake-php?hl=en
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others
>> with their CakePHP related questions.
>> 
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-29 Thread Jonathon Musters
Please do write it for us. And have it slice bread as an extra lol


On 4/29/10, thatsgreat2345  wrote:
> U then make one are we supposed to just write it all for you
>
> On Apr 29, 11:54 am, hoss7  wrote:
>> i need ajax shopping cart with cakephp
>>
>> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
>> with their CakePHP related questions.
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: i need ajax shopping cart with cakephp

2010-04-29 Thread thatsgreat2345
U then make one are we supposed to just write it all for you

On Apr 29, 11:54 am, hoss7  wrote:
> i need ajax shopping cart with cakephp
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


i need ajax shopping cart with cakephp

2010-04-29 Thread hoss7
i need ajax shopping cart with cakephp

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Kaching: CakePHP Shopping Cart Framework Plugin

2010-04-22 Thread Mike Friesen
I only used subversion, because I was more familar with it.  I've created a
project page on Github and I'll work on moving the source over there.

Mike

On Thu, Apr 22, 2010 at 6:09 AM, j0n4s.h4rtm...@googlemail.com <
j0n4s.h4rtm...@googlemail.com> wrote:

> In addition, GitHub just released their SVN API, which means you can
> still use your SVN tools and for pushing and pulling from
> repositories:
> http://github.com/blog/626-announcing-svn-support
>
> Also, subdirectories aren't used much. Fabio you should create a
> subdomain pointing to your application, it is just easier, and better
> in most cases.
>
>
> On Apr 22, 2:57 am, Mike Friesen  wrote:
> > Hi,
> >
> > Sorry, but I never thought of installing kaching in a subdirectory.  I've
> > been playing around with it tonight and your right, the css / links don't
> > work inside a subdirectory.  I'll create a ticket for that and I'll get
> that
> > working for the next release.  In the meantime, the only thing I can
> think
> > of is if you create a subdomain.
> >
> > Mike
> >
> >
> >
> > On Wed, Apr 21, 2010 at 3:43 AM, fabio <3bi...@gmail.com> wrote:
> > > Dear Mike,
> >
> > > thanks a lot for sharing your good work...
> >
> > > I'm trying to get Kaching working, but i've encountered an obstacle
> > > regarding plugin routing... i guess
> > > I'm trying and trying to solve this but I couldn't solve it yet...
> > > that's why I'll try to explain it and hope on a little help...
> >
> > > Basicly I've correctly installed a fresh version of CakePHP 1.3 RC4 in
> > > a subdirectory "kache" of my site:
> >
> > >http://www.example.com/kache
> >
> > > Then, I've followed all your precious guidelines on
> > >http://code.google.com/p/kaching-php/wiki/Installationand it seems
> > > that Kaching works fine "underground", except for the routing problem
> > > i'm going to explain with the following facts:
> >
> > > - if i point the browser tohttp://www.example.com/kache/kaching/i
> > > get a 403 Forbidden error
> > > - if i point the browser tohttp://www.example.com/kache/kachingi get
> > > a redirect to urlhttp://www.example.com/kache/app/webroot/kaching/
> > > which ends with a 403 Forbidden error as well
> > > - i could correctly create an admin user by pointing to url
> > >http://www.example.com/kache/kaching/users/install(evenif
> > > css style
> > > was missing)
> > > - i can correctly login to the admin interface by pointing to url
> > >http://www.example.com//kache/kaching/users/login(evenif
> > > css style
> > > is missing)
> > > - looking at html source of the pages i've noticed that all referred
> > > elements (css stylesheet, images, ... ) are missing the "kache" part
> > > in their url, and if i add it by virtually modifying the code with
> > > FireBug everything renders fine...
> > > - similarly, all the internal url-links in the pages are missing the
> > > "kache" part and pointing to 404 error, but if i add the the "kache"
> > > part to url they point fine
> >
> > > es.
> > >http://www.example.com/kaching/categories/index--> 404error
> > >http://www.example.com/kache/kaching/categories/index --> OK (with no
> > > css style)
> >
> > >http://www.example.com/kaching/shoppingcarts/view --> 404error
> > >http://www.example.com/kache/kaching/shoppingcarts/view--> OK (with
> > > no css style)
> >
> > > ..
> > > ..
> >
> > > and so on for all the pages...
> >
> > > In the end, since i think this is probably a rounting problem, I'm
> > > trying to modify something in the files:
> >
> > > app/config/core.php
> > > app/config/routes.php
> > > app/plugins/kaching/config/routes.php
> >
> > > but with no succes til now... :-(
> >
> > > Actually i'm a web developer not yet 100% skilled in CakePHP and i
> > > think i'm possibly missing both some basic routing concepts or maybe
> > > something very stupid (as often happens)...
> >
> > > Did you maybe recognize where could be the problem looking at my
> > > description ? Any useful tips ?
> >
> > > Thanks a lot in advance for a little help ;-)
> >
> > > Best regards
> >
> > > Tres
> >
> > > On 16 Mar, 03:12, Mike  wrote:
> > > > If your looking for a shoppingcart plugin for CakePHP that is
> > > > distributed under the MIT License, here you go...
> > >http://code.google.com/p/kaching-php
> >
> > > > Kachingis tailored for developers that want full control on building
> > > > their online store.  Kachingprovides the store administration and
> > > > lots of features (see project page).  You build the store's look and
> > > > feel interacting with our controllers.
> >
> > > > Hopefully people can find this useful and either contribute features
> > > > back or at least be able to use it as a starting point for their own
> > > > online stores.
> >
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> others
> > > with their CakePHP related questions.
> >
> > > You receive

Re: Kaching: CakePHP Shopping Cart Framework Plugin

2010-04-22 Thread j0n4s.h4rtm...@googlemail.com
In addition, GitHub just released their SVN API, which means you can
still use your SVN tools and for pushing and pulling from
repositories:
http://github.com/blog/626-announcing-svn-support

Also, subdirectories aren't used much. Fabio you should create a
subdomain pointing to your application, it is just easier, and better
in most cases.


On Apr 22, 2:57 am, Mike Friesen  wrote:
> Hi,
>
> Sorry, but I never thought of installing kaching in a subdirectory.  I've
> been playing around with it tonight and your right, the css / links don't
> work inside a subdirectory.  I'll create a ticket for that and I'll get that
> working for the next release.  In the meantime, the only thing I can think
> of is if you create a subdomain.
>
> Mike
>
>
>
> On Wed, Apr 21, 2010 at 3:43 AM, fabio <3bi...@gmail.com> wrote:
> > Dear Mike,
>
> > thanks a lot for sharing your good work...
>
> > I'm trying to get Kaching working, but i've encountered an obstacle
> > regarding plugin routing... i guess
> > I'm trying and trying to solve this but I couldn't solve it yet...
> > that's why I'll try to explain it and hope on a little help...
>
> > Basicly I've correctly installed a fresh version of CakePHP 1.3 RC4 in
> > a subdirectory "kache" of my site:
>
> >http://www.example.com/kache
>
> > Then, I've followed all your precious guidelines on
> >http://code.google.com/p/kaching-php/wiki/Installationand it seems
> > that Kaching works fine "underground", except for the routing problem
> > i'm going to explain with the following facts:
>
> > - if i point the browser tohttp://www.example.com/kache/kaching/i
> > get a 403 Forbidden error
> > - if i point the browser tohttp://www.example.com/kache/kachingi get
> > a redirect to urlhttp://www.example.com/kache/app/webroot/kaching/
> > which ends with a 403 Forbidden error as well
> > - i could correctly create an admin user by pointing to url
> >http://www.example.com/kache/kaching/users/install(even if css style
> > was missing)
> > - i can correctly login to the admin interface by pointing to url
> >http://www.example.com//kache/kaching/users/login(even if css style
> > is missing)
> > - looking at html source of the pages i've noticed that all referred
> > elements (css stylesheet, images, ... ) are missing the "kache" part
> > in their url, and if i add it by virtually modifying the code with
> > FireBug everything renders fine...
> > - similarly, all the internal url-links in the pages are missing the
> > "kache" part and pointing to 404 error, but if i add the the "kache"
> > part to url they point fine
>
> > es.
> >http://www.example.com/kaching/categories/index--> 404error
> >http://www.example.com/kache/kaching/categories/index --> OK (with no
> > css style)
>
> >http://www.example.com/kaching/shoppingcarts/view --> 404error
> >http://www.example.com/kache/kaching/shoppingcarts/view--> OK (with
> > no css style)
>
> > ..
> > ..
>
> > and so on for all the pages...
>
> > In the end, since i think this is probably a rounting problem, I'm
> > trying to modify something in the files:
>
> > app/config/core.php
> > app/config/routes.php
> > app/plugins/kaching/config/routes.php
>
> > but with no succes til now... :-(
>
> > Actually i'm a web developer not yet 100% skilled in CakePHP and i
> > think i'm possibly missing both some basic routing concepts or maybe
> > something very stupid (as often happens)...
>
> > Did you maybe recognize where could be the problem looking at my
> > description ? Any useful tips ?
>
> > Thanks a lot in advance for a little help ;-)
>
> > Best regards
>
> > Tres
>
> > On 16 Mar, 03:12, Mike  wrote:
> > > If your looking for a shoppingcart plugin for CakePHP that is
> > > distributed under the MIT License, here you go...
> >http://code.google.com/p/kaching-php
>
> > > Kachingis tailored for developers that want full control on building
> > > their online store.  Kachingprovides the store administration and
> > > lots of features (see project page).  You build the store's look and
> > > feel interacting with our controllers.
>
> > > Hopefully people can find this useful and either contribute features
> > > back or at least be able to use it as a starting point for their own
> > > online stores.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To

Re: Kaching: CakePHP Shopping Cart Framework Plugin

2010-04-22 Thread j0n4s.h4rtm...@googlemail.com
Hello,

I took a look at Kaching earlier, it looks great.
The biggest bummer for me was that it wasn't on github.
You will probably see lots more community action (forks, pull
requests, commits, patches) there.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Kaching: CakePHP Shopping Cart Framework Plugin

2010-04-21 Thread Mike Friesen
Hi,

Sorry, but I never thought of installing kaching in a subdirectory.  I've
been playing around with it tonight and your right, the css / links don't
work inside a subdirectory.  I'll create a ticket for that and I'll get that
working for the next release.  In the meantime, the only thing I can think
of is if you create a subdomain.

Mike


On Wed, Apr 21, 2010 at 3:43 AM, fabio <3bi...@gmail.com> wrote:

> Dear Mike,
>
> thanks a lot for sharing your good work...
>
> I'm trying to get Kaching working, but i've encountered an obstacle
> regarding plugin routing... i guess
> I'm trying and trying to solve this but I couldn't solve it yet...
> that's why I'll try to explain it and hope on a little help...
>
> Basicly I've correctly installed a fresh version of CakePHP 1.3 RC4 in
> a subdirectory "kache" of my site:
>
> http://www.example.com/kache
>
> Then, I've followed all your precious guidelines on
> http://code.google.com/p/kaching-php/wiki/Installation and it seems
> that Kaching works fine "underground", except for the routing problem
> i'm going to explain with the following facts:
>
> - if i point the browser to http://www.example.com/kache/kaching/ i
> get a 403 Forbidden error
> - if i point the browser to http://www.example.com/kache/kaching i get
> a redirect to url http://www.example.com/kache/app/webroot/kaching/
> which ends with a 403 Forbidden error as well
> - i could correctly create an admin user by pointing to url
> http://www.example.com/kache/kaching/users/install (even if css style
> was missing)
> - i can correctly login to the admin interface by pointing to url
> http://www.example.com//kache/kaching/users/login (even if css style
> is missing)
> - looking at html source of the pages i've noticed that all referred
> elements (css stylesheet, images, ... ) are missing the "kache" part
> in their url, and if i add it by virtually modifying the code with
> FireBug everything renders fine...
> - similarly, all the internal url-links in the pages are missing the
> "kache" part and pointing to 404 error, but if i add the the "kache"
> part to url they point fine
>
> es.
> http://www.example.com/kaching/categories/index --> 404error
> http://www.example.com/kache/kaching/categories/index  --> OK (with no
> css style)
>
> http://www.example.com/kaching/shoppingcarts/view  --> 404error
> http://www.example.com/kache/kaching/shoppingcarts/view --> OK (with
> no css style)
>
> ..
> ..
>
> and so on for all the pages...
>
> In the end, since i think this is probably a rounting problem, I'm
> trying to modify something in the files:
>
> app/config/core.php
> app/config/routes.php
> app/plugins/kaching/config/routes.php
>
> but with no succes til now... :-(
>
> Actually i'm a web developer not yet 100% skilled in CakePHP and i
> think i'm possibly missing both some basic routing concepts or maybe
> something very stupid (as often happens)...
>
> Did you maybe recognize where could be the problem looking at my
> description ? Any useful tips ?
>
> Thanks a lot in advance for a little help ;-)
>
> Best regards
>
> Tres
>
> On 16 Mar, 03:12, Mike  wrote:
> > If your looking for a shoppingcart plugin for CakePHP that is
> > distributed under the MIT License, here you go...
> http://code.google.com/p/kaching-php
> >
> > Kachingis tailored for developers that want full control on building
> > their online store.  Kachingprovides the store administration and
> > lots of features (see project page).  You build the store's look and
> > feel interacting with our controllers.
> >
> > Hopefully people can find this useful and either contribute features
> > back or at least be able to use it as a starting point for their own
> > online stores.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Kaching: CakePHP Shopping Cart Framework Plugin

2010-04-21 Thread fabio
Dear Mike,

thanks a lot for sharing your good work...

I'm trying to get Kaching working, but i've encountered an obstacle
regarding plugin routing... i guess
I'm trying and trying to solve this but I couldn't solve it yet...
that's why I'll try to explain it and hope on a little help...

Basicly I've correctly installed a fresh version of CakePHP 1.3 RC4 in
a subdirectory "kache" of my site:

http://www.example.com/kache

Then, I've followed all your precious guidelines on
http://code.google.com/p/kaching-php/wiki/Installation and it seems
that Kaching works fine "underground", except for the routing problem
i'm going to explain with the following facts:

- if i point the browser to http://www.example.com/kache/kaching/ i
get a 403 Forbidden error
- if i point the browser to http://www.example.com/kache/kaching i get
a redirect to url http://www.example.com/kache/app/webroot/kaching/
which ends with a 403 Forbidden error as well
- i could correctly create an admin user by pointing to url
http://www.example.com/kache/kaching/users/install (even if css style
was missing)
- i can correctly login to the admin interface by pointing to url
http://www.example.com//kache/kaching/users/login (even if css style
is missing)
- looking at html source of the pages i've noticed that all referred
elements (css stylesheet, images, ... ) are missing the "kache" part
in their url, and if i add it by virtually modifying the code with
FireBug everything renders fine...
- similarly, all the internal url-links in the pages are missing the
"kache" part and pointing to 404 error, but if i add the the "kache"
part to url they point fine

es.
http://www.example.com/kaching/categories/index --> 404error
http://www.example.com/kache/kaching/categories/index  --> OK (with no
css style)

http://www.example.com/kaching/shoppingcarts/view  --> 404error
http://www.example.com/kache/kaching/shoppingcarts/view --> OK (with
no css style)

..
..

and so on for all the pages...

In the end, since i think this is probably a rounting problem, I'm
trying to modify something in the files:

app/config/core.php
app/config/routes.php
app/plugins/kaching/config/routes.php

but with no succes til now... :-(

Actually i'm a web developer not yet 100% skilled in CakePHP and i
think i'm possibly missing both some basic routing concepts or maybe
something very stupid (as often happens)...

Did you maybe recognize where could be the problem looking at my
description ? Any useful tips ?

Thanks a lot in advance for a little help ;-)

Best regards

Tres

On 16 Mar, 03:12, Mike  wrote:
> If your looking for a shoppingcart plugin for CakePHP that is
> distributed under the MIT License, here you 
> go...http://code.google.com/p/kaching-php
>
> Kachingis tailored for developers that want full control on building
> their online store.  Kachingprovides the store administration and
> lots of features (see project page).  You build the store's look and
> feel interacting with our controllers.
>
> Hopefully people can find this useful and either contribute features
> back or at least be able to use it as a starting point for their own
> online stores.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Kaching: CakePHP Shopping Cart Framework Plugin

2010-04-21 Thread fabio
Dear Mike,

thanks a lot for sharing your good work...

I'm trying to get Kaching working, but i've encountered an obstacle
regarding plugin routing... i guess
I'm trying and trying to solve this but I couldn't solve it yet...
that's why I'll try to explain it and hope on a little help...

Basicly I've correctly installed a fresh version of CakePHP 1.3 RC4 in
a subdirectory "kache" of my site:

http://www.example.com/kache

Then, I've followed all your precious guidelines on
http://code.google.com/p/kaching-php/wiki/Installation and it seems
that Kaching works fine "underground", except for the routing problem
i'm going to explain with the following facts:

- if i point the browser to http://www.example.com/kache/kaching/ i
get a 403 Forbidden error
- if i point the browser to http://www.example.com/kache/kaching i get
a redirect to url http://www.trebiano.it/kache/app/webroot/kaching/
which ends with a 403 Forbidden error as well
- i could correctly create an admin user by pointing to url
http://www.example.com/kache/kaching/users/install (even if css style
was missing)
- i can correctly login to the admin interface by pointing to url
http://www.example.com//kache/kaching/users/login (even if css style
is missing)
- looking at html source of the pages i've noticed that all referred
elements (css stylesheet, images, ... ) are missing the "kache" part
in their url, and if i add it by virtually modifying the code with
FireBug everything renders fine...
- similarly, all the internal url-links in the pages are missing the
"kache" part and pointing to 404 error, but if i add the the "kache"
part to url they point fine

es.
http://www.example.com/kaching/categories/index --> 404error
http://www.example.com/kache/kaching/categories/index  --> OK (with no
css style)

http://www.example.com/kaching/shoppingcarts/view  --> 404error
http://www.example.com/kache/kaching/shoppingcarts/view --> OK (with
no css style)

..
..

and so on for all the pages...

In the end, since i think this is probably a rounting problem, I'm
trying to modify something in the files:

app/config/core.php
app/config/routes.php
app/plugins/kaching/config/routes.php

but with no succes til now... :-(

Actually i'm a web developer not yet 100% skilled in CakePHP and i
think i'm possibly missing both some basic routing concepts or maybe
something very stupid (as often happens)...

Did you maybe recognize where could be the problem looking at my
description ? Any useful tips ?

Thanks a lot in advance for a little help ;-)


Best regards

Tres





I'm a web developer not yet 100% skilled on CakePHP



On 16 Mar, 03:12, Mike  wrote:
> If your looking for a shoppingcart plugin for CakePHP that is
> distributed under the MIT License, here you 
> go...http://code.google.com/p/kaching-php
>
> Kachingis tailored for developers that want full control on building
> their online store.  Kachingprovides the store administration and
> lots of features (see project page).  You build the store's look and
> feel interacting with our controllers.
>
> Hopefully people can find this useful and either contribute features
> back or at least be able to use it as a starting point for their own
> online stores.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Kaching: CakePHP Shopping Cart Framework Plugin

2010-03-16 Thread Jamie
Mike - this looks really slick. Awesome work. I'm definitely going to
be incorporating this into a couple of upcoming projects.

On Mar 15, 6:12 pm, Mike  wrote:
> If your looking for a shoppingcart plugin for CakePHP that is
> distributed under the MIT License, here you 
> go...http://code.google.com/p/kaching-php
>
> Kachingis tailored for developers that want full control on building
> their online store.  Kachingprovides the store administration and
> lots of features (see project page).  You build the store's look and
> feel interacting with our controllers.
>
> Hopefully people can find this useful and either contribute features
> back or at least be able to use it as a starting point for their own
> online stores.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Kaching: CakePHP Shopping Cart Framework Plugin

2010-03-15 Thread Mike

If your looking for a shoppingcart plugin for CakePHP that is
distributed under the MIT License, here you go... 
http://code.google.com/p/kaching-php

Kaching is tailored for developers that want full control on building
their online store.  Kaching provides the store administration and
lots of features (see project page).  You build the store's look and
feel interacting with our controllers.

Hopefully people can find this useful and either contribute features
back or at least be able to use it as a starting point for their own
online stores.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Introducing VaM Cart - CakePHP Shopping Cart

2010-03-11 Thread Sam Sherlock
pure plugin
http://github.com/ProLoser/CakePHP-Cart

I have'nt tried it out yet but mean to. VaM does look good but being able to
plug in a cart into an app would be so nice
 <http://github.com/ProLoser/CakePHP-Cart>
- S



On 11 March 2010 15:36, milx  wrote:

> Pah! It uses an American flag to represent the "English" language in
> the demo... I won't use it!
>
> Oh wait.. I could change it to British. Maybe it ain't so bad after
> all.
>
>
>
>
>
>
> On Mar 11, 12:31 pm, "Tiago N. Sampaio"  wrote:
> > Great job.
> > I was searching for a advanced example, and you give me xD.
> >
> > Thank you very much!
> >
> > Obs: Like others said, GPL is too bad to use.
> > If you realy want to your project be free, use a realy open licence like
> > BSD.
> >
> > Em Qua, 2010-03-10 às 10:25 -0800, VaM escreveu:
> >
> >
> >
> > > VaM Cart - Free, Open Source CakePHP Based Shopping Cart.
> >
> > > Official Site -http://vamcart.com/Online Demo -
> http://vamcart.com/demo/
> > > Admin:http://vamcart.com/demo/admin/
> > > Login: admin
> > > Password: password
> >
> > > * Easy Installation.
> > > * CSS, JS minify and compress.
> > > * SEO - Search Engine Optimization.
> > > * Unlimited Categories, Products.
> > > * CakePHP, MVC, Smarty.
> > > * Multi Language, Multi Currency.
> > > * Templatable.
> > > * Open Source.
> > > * Automatic Image Resize.
> > > * Product Reviews.
> > > * Coupons...
> >
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> others with their CakePHP related questions.
> >
> > > You received this message because you are subscribed to the Google
> Groups "CakePHP" group.
> > > To post to this group, send email to cake-php@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.comFor
> > >  more options, visit this group athttp://
> groups.google.com/group/cake-php?hl=en
> >
> >
> >
> >  signature.asc
> > < 1KViewDownload
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Introducing VaM Cart - CakePHP Shopping Cart

2010-03-11 Thread milx
Pah! It uses an American flag to represent the "English" language in
the demo... I won't use it!

Oh wait.. I could change it to British. Maybe it ain't so bad after
all.






On Mar 11, 12:31 pm, "Tiago N. Sampaio"  wrote:
> Great job.
> I was searching for a advanced example, and you give me xD.
>
> Thank you very much!
>
> Obs: Like others said, GPL is too bad to use.
> If you realy want to your project be free, use a realy open licence like
> BSD.
>
> Em Qua, 2010-03-10 às 10:25 -0800, VaM escreveu:
>
>
>
> > VaM Cart - Free, Open Source CakePHP Based Shopping Cart.
>
> > Official Site -http://vamcart.com/Online Demo -http://vamcart.com/demo/
> > Admin:http://vamcart.com/demo/admin/
> > Login: admin
> > Password: password
>
> > * Easy Installation.
> > * CSS, JS minify and compress.
> > * SEO - Search Engine Optimization.
> > * Unlimited Categories, Products.
> > * CakePHP, MVC, Smarty.
> > * Multi Language, Multi Currency.
> > * Templatable.
> > * Open Source.
> > * Automatic Image Resize.
> > * Product Reviews.
> > * Coupons...
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups 
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
>
>
>  signature.asc
> < 1KViewDownload

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Introducing VaM Cart - CakePHP Shopping Cart

2010-03-11 Thread Tiago N. Sampaio
Great job.
I was searching for a advanced example, and you give me xD.

Thank you very much!

Obs: Like others said, GPL is too bad to use.
If you realy want to your project be free, use a realy open licence like
BSD.


Em Qua, 2010-03-10 às 10:25 -0800, VaM escreveu:
> VaM Cart - Free, Open Source CakePHP Based Shopping Cart.
> 
> Official Site - http://vamcart.com/ Online Demo - http://vamcart.com/demo/
> Admin: http://vamcart.com/demo/admin/
> Login: admin
> Password: password
> 
> * Easy Installation.
> * CSS, JS minify and compress.
> * SEO - Search Engine Optimization.
> * Unlimited Categories, Products.
> * CakePHP, MVC, Smarty.
> * Multi Language, Multi Currency.
> * Templatable.
> * Open Source.
> * Automatic Image Resize.
> * Product Reviews.
> * Coupons...
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en


signature.asc
Description: Esta é uma parte de mensagem assinada digitalmente


Re: Introducing VaM Cart - CakePHP Shopping Cart

2010-03-10 Thread humbao




Yeah, too bad.

If that project wants traction or designers making nice templates which
they can charge for, the license has got to go.
Not to mention payment modules or other cool functionality.

BSD/MIT all the way...

Too bad Bakesale is AWOL and struggling to keep up with 1.2/1.3 but at
least it was MIT.

Still wishing for a decent cakephp e-commerce application that is a
pure plugin...

Who wants to port Opencart.com to a Cakephp plugin?


humbao 


Graham Weldon wrote:

  Mothers, hide your daughters! Its GPL!
  
  
  
  Cheers,
  
Graham Weldon
e. gra...@grahamweldon.com
p. +61 407 017 293
w. http://grahamweldon.com
  
  
  
  
  On 11/03/2010, at 5:25 AM, VaM wrote:
  
  
VaM Cart - Free, Open Source CakePHP Based Shopping Cart.

Official Site - http://vamcart.com/
Online Demo - http://vamcart.com/demo/
Admin: http://vamcart.com/demo/admin/

  
  







Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en


Re: Introducing VaM Cart - CakePHP Shopping Cart

2010-03-10 Thread Graham Weldon
Mothers, hide your daughters! Its GPL!

Cheers,

Graham Weldon
e. gra...@grahamweldon.com
p. +61 407 017 293
w. http://grahamweldon.com

On 11/03/2010, at 5:25 AM, VaM wrote:

> VaM Cart - Free, Open Source CakePHP Based Shopping Cart.
> 
> Official Site - http://vamcart.com/ Online Demo - http://vamcart.com/demo/
> Admin: http://vamcart.com/demo/admin/
> Login: admin
> Password: password
> 
> * Easy Installation.
> * CSS, JS minify and compress.
> * SEO - Search Engine Optimization.
> * Unlimited Categories, Products.
> * CakePHP, MVC, Smarty.
> * Multi Language, Multi Currency.
> * Templatable.
> * Open Source.
> * Automatic Image Resize.
> * Product Reviews.
> * Coupons...
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en



Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Introducing VaM Cart - CakePHP Shopping Cart

2010-03-10 Thread VaM
VaM Cart - Free, Open Source CakePHP Based Shopping Cart.

Official Site - http://vamcart.com/ Online Demo - http://vamcart.com/demo/
Admin: http://vamcart.com/demo/admin/
Login: admin
Password: password

* Easy Installation.
* CSS, JS minify and compress.
* SEO - Search Engine Optimization.
* Unlimited Categories, Products.
* CakePHP, MVC, Smarty.
* Multi Language, Multi Currency.
* Templatable.
* Open Source.
* Automatic Image Resize.
* Product Reviews.
* Coupons...

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: shopping cart

2009-10-16 Thread Hrmo

This is my approach to the shopping cart thing in cakephp:
A ShoppingCartComponent serves as an interface for the operations on
the cart (add to cart, calculate price, etc.). Internally, it used
cookies for not logged-in users, and a database for authenticated
users.
With this approach, anonymous users can still use the site, while
authenticated users don't depend on an a specific computer to retrieve
their cart. The same system can be extended to include a whishlist
very easily.

On Oct 15, 3:35 pm, Bastian  wrote:
> You can also check out phpshop or bakesale to see how you could create
> shops with cakephp
>
> On 15 Okt., 09:01, aravind raj  wrote:
>
> > am a new to cakephp
> > can any one help to have shopping cart in my project...
>
> > --
> > Aravind "Think Global Act Local"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: shopping cart

2009-10-15 Thread Bastian

You can also check out phpshop or bakesale to see how you could create
shops with cakephp

On 15 Okt., 09:01, aravind raj  wrote:
> am a new to cakephp
> can any one help to have shopping cart in my project...
>
> --
> Aravind "Think Global Act Local"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: shopping cart

2009-10-15 Thread Céryl

As it turns out, just today I'm working on a shopping cart!

It's far from finished and rather specific for my needs, no payment or
anything, people just press "add to cart" in a list of products and
can check their cart in another view. There they get an ordernumber
and the account number and get the delivery when money is transferred
via regular bank transfer.

In general I added an addtocart($id) function to my
products_controller, which stores info on the product with id $id from
the database in a Cookie (which lasts for an hour), and increments a
counter so you can keep adding products. An added view called viewcart
gets all the products-info out of the cart (Cookie) with a for-loop
and displays it. From that view people can send the list via e-mail to
me and get payment info, This screen also holds a "clear Cart" button
that destroys the cookie.

I plan to add the orders to my database too for reference at a later
date.

I know you're new and this probably makes no sense now, but hopefully
at a later state it can help. Anybody else reading this, is this a
good way of going about is, or are there better ideas?




On 15 okt, 09:01, aravind raj  wrote:
> am a new to cakephp
> can any one help to have shopping cart in my project...
>
> --
> Aravind "Think Global Act Local"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



shopping cart

2009-10-15 Thread aravind raj
am a new to cakephp
can any one help to have shopping cart in my project...

-- 
Aravind "Think Global Act Local"

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: eCommerce shopping cart - Cake alone or with 3rd party?

2008-04-10 Thread Matti Putkonen

The SVN has a version for 1.2. The bugs are very small and I am
running it on 3 different live stores. However it is not very
"absolute newbie" friendly yet.

Drop me note thru email or CakePHP IRC if you need more info on it.

On 10 huhti, 08:15, silkcom <[EMAIL PROTECTED]> wrote:
> luke, excellent question.  I'm wondering the same thing, and I really
> think that this hasn't yet been answered.  It seems to me that a
> shopping cart should be pretty fundamental.  My only problem with
> BakeSale is that it seems to still be for 1.1, and 1.2 is very very
> nice (too nice to give up for me).  Someone said that you can get it
> to work, but comeon, isn't this something that people regularly need?
>
> If someone who has used BakeSale in 1.2 can verify that it work (or
> what I would need to do to get it to work) that would be great.  It
> really does seem like a solid product.
>
> On Mar 17, 7:59 am, luke BAKING barker <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > thanks for your replies, people!
>
> > Simon, I have been looking at bakesale a wee bit, yes, it does seem
> > pretty good - I was a bit worried by a seeming lack of recent activity
> > on the cakeforge project page, but it has matured a lot I can see.
>
> > Have you used it, then?
>
> > thanks for the codeigniter link too - thats very useful info -
> > excellent!
>
> > keep on baking :)
>
> > Luke
>
> > On Mar 14, 1:09 pm, "[EMAIL PROTECTED]"
>
> > <[EMAIL PROTECTED]> wrote:
> > > Have you considered bake sale?http://bakesalehq.com/
>
> > > Simon
>
> > >http://www.simonellistonball.com
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: eCommerce shopping cart - Cake alone or with 3rd party?

2008-04-09 Thread silkcom

luke, excellent question.  I'm wondering the same thing, and I really
think that this hasn't yet been answered.  It seems to me that a
shopping cart should be pretty fundamental.  My only problem with
BakeSale is that it seems to still be for 1.1, and 1.2 is very very
nice (too nice to give up for me).  Someone said that you can get it
to work, but comeon, isn't this something that people regularly need?

If someone who has used BakeSale in 1.2 can verify that it work (or
what I would need to do to get it to work) that would be great.  It
really does seem like a solid product.

On Mar 17, 7:59 am, luke BAKING barker <[EMAIL PROTECTED]> wrote:
> Hi,
>
> thanks for your replies, people!
>
> Simon, I have been looking at bakesale a wee bit, yes, it does seem
> pretty good - I was a bit worried by a seeming lack of recent activity
> on the cakeforge project page, but it has matured a lot I can see.
>
> Have you used it, then?
>
> thanks for the codeigniter link too - thats very useful info -
> excellent!
>
> keep on baking :)
>
> Luke
>
> On Mar 14, 1:09 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Have you considered bake sale?http://bakesalehq.com/
>
> > Simon
>
> >http://www.simonellistonball.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Looking for help working through a logic problem (shopping cart related)

2008-01-25 Thread designvoid

Hi all,

I'm currently trying to complete what I thought would be a fairly
simple shopping cart, however I have run into some issues with the
logic side of add/updating a users cart.

As it stands I have a cart table & a cart options table (to store
users product variation choices), now I have it successfully checking
for the existance of an existing product in the cart and incrementing
quantity if found, and adding the relevant variation option (via a
foreach loop on the posted data array and cartoption->save). It
currently is set up so a product can have limitless variations so
thats also a bit of a headache looping through every variation choice
once the product is added to the cart.

As it stands it will increment the cart qty if there is a match BUT
add a new entry in the cart options table regardless.

I cannot seem to work out a logical way to check for duplicate
submission using BOTH tables ie exactly same product and options being
added to the cart...

Any thoughts, ideas, suggestions would be greatfully recieved - I'm
not looking for someone to code it for me, just help me work thru the
logic and hopefully generate some good ideas!

Thanks,

toby.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: shopping cart

2007-11-07 Thread Juan Basso

Why not shopping cart IN cake? http://cakeforge.org/projects/bakesale/


Juan Basso

On 6 nov, 15:04, carSign <[EMAIL PROTECTED]> wrote:
> Has anyone been able to integrate a third party shopping cart into
> cake?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



shopping cart

2007-11-06 Thread carSign

Has anyone been able to integrate a third party shopping cart into
cake?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



shopping cart

2007-10-23 Thread carSign

What have you found to be your best solution for a shopping cart
system in cake php.
List the pros and cons of what you have used.

Thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Shopping Cart

2007-07-04 Thread citrus

To write some data to the session, use $this->Session->write(name,
data)
To read from the session: $this->Session->read(name)
To check if a variable exists in the session or not: $this->Session-
>check(name)

For more info, have a look at Cake's API.

On Jul 5, 7:36 am, r557 <[EMAIL PROTECTED]> wrote:
> I'm creating a shopping cart to extend a current project completed in
> CakePHP.
>
> I'm having some issues with regards to understanding how Sessions work
> around CakePHP and how to use them.  The trouble i'm having is, I am
> not able to find some practical examples regarding how to store
> session data around Cake.
>
> For example, i have a controller:
>  class ProductsController extends AppController {
>
> function view($id = null) {
> $this->layout = 'main';
> if(!$id) {
> $this->Session->setFlash('Invalid id for Product.');
> $this->redirect('/products/index/');
> }
> $this->set('product', $this->Product->read(null, $id));
> }
> ?>
>
> / view.thtml /
> 
> 
> image('sundaymorning_cover.jpg', array('class' =>
> 'product_img')); ?>
> 
>  - $ $product['Product']['price']?>
> 
> 
> 
>
> I'm looking for a starting point to begin the process of integrating a
> Shopping Cart Using Sessions.  Not looking necessarily for a complete
> how-to (would be nice if possible :)) but all i'm really looking for
> is some assistance on how to integrate this.  I haven't found much on
> this topic as of yet, but if someone has any good resources please
> share.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Shopping Cart

2007-07-04 Thread r557

I'm creating a shopping cart to extend a current project completed in
CakePHP.

I'm having some issues with regards to understanding how Sessions work
around CakePHP and how to use them.  The trouble i'm having is, I am
not able to find some practical examples regarding how to store
session data around Cake.

For example, i have a controller:
layout = 'main';
if(!$id) {
$this->Session->setFlash('Invalid id for Product.');
$this->redirect('/products/index/');
}
$this->set('product', $this->Product->read(null, $id));
}
?>

/ view.thtml /


image('sundaymorning_cover.jpg', array('class' =>
'product_img')); ?>

 - $




I'm looking for a starting point to begin the process of integrating a
Shopping Cart Using Sessions.  Not looking necessarily for a complete
how-to (would be nice if possible :)) but all i'm really looking for
is some assistance on how to integrate this.  I haven't found much on
this topic as of yet, but if someone has any good resources please
share.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP and external/3rd party shopping cart

2006-09-24 Thread twinkletoes

Thanks for your quick answer :)

I guess I'll go for the CubeCart-in-a-folder solution.

This will be a *very* simple shopping cart, so CubeCart's functionality
(on the shopping cart portion of the site) is more than adequate,
luckily (since my client insist that I use it).

The site as a whole will also be simple. It'll be about 35 content
pages, the shopping cart, and a restricted-access download area made
available after purchase of a product. Also, an admin area for the
client to add and change text on the content pages and handling a bit
of miscellaneous stuff. Plus I have to write some SOAP stuff to handle
credit card payments.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: CakePHP and external/3rd party shopping cart

2006-09-23 Thread John Zimmerman
On 9/22/06, twinkletoes <[EMAIL PROTECTED]> wrote:
Perhaps the simplest approach would be to just place CubeCart in it'sown folder, throw in a .htaccess file that stops mod_rewrite from doingits thing in that particular folder, and then just redirect the users
there when they're doing their shopping?This is probably going to be your best approach.  CubeCart's database structure is not very Cake compatible.  Cube cart does support regular pages though.
The layouts you will essentially be doing twice.  Once for cake, and then converting them to CubeCart's templates.CubeCart is a decent shopping cart system, but it definitely has some functionality holes in it.
Maybe if you give us a description of what functionality you want the whole site to have, and what parts of that CubeCart cannot handle, we might be able to give you a better suggestion.  What type of business this is for might also help in recommending an appropriate solution.
It may be that if CubeCart is a requirement, more functionality from Cake would not be needed.  Depends on the situation.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


CakePHP and external/3rd party shopping cart

2006-09-22 Thread twinkletoes

Hi, I'm new to CakePHP, and thought I'd take it for a test spin on a
small project I'm doing for one of my clients.

This project requires a shopping cart, and what's more, it requires a
particular shopping cart (CubeCart), since my client has already bought
a license and insists that I use it.

Which leaves me wondering what the best/recommended way of merging this
with Cake would be.

I'm thinking the ideal approach is to set up a layout for the cart
(putting it in app/layouts) and convert each single Cubecart
page/script to the appropriate models, controllers and views. But that
sounds like a horrible job, considering that CubeCart is made up of a
whole bunch of tables and files and has it's own system of plugins etc.

I've thought of the possibility of placing the whole CubeCart
application in the vendors folder, but I'm a bit bewildered as to how
I'd fit it into the Cake model, considering that CubeCart generates
it's own pages.

Perhaps the simplest approach would be to just place CubeCart in it's
own folder, throw in a .htaccess file that stops mod_rewrite from doing
its thing in that particular folder, and then just redirect the users
there when they're doing their shopping?

Or is there some other way this could be done without generating a ton
of work?

Any help or pointers would be greatly appreciated.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Shopping Cart Session Code

2006-06-22 Thread jeko

I'll make it a little less app specific first, but that's a good idea.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Shopping Cart Session Code

2006-06-22 Thread Samuel DeVore
you should go to cakeforge.org and add this as a snippet ;)On 6/22/06, jeko <
[EMAIL PROTECTED]> wrote:Thought this might be useful for some, manages a session cart/wishlist:
class WishlistController extends AppController{var $uses = 'Product';var $helpers = array('Html', '_javascript_');var $layout = 'default';// loop thru products in session
// get info and make a delete keyfunction index(){$i = 0;$wishlist = null;$products = $this->Session->read('Wishlist');
pr($products);if (isset($products)){foreach ($products as $product => $qty){$wishlist[$i] = $this->Product->find(array('product_number' =>
$product), 'product_number, name, wholesale');$wishlist[$i]['Product']['deleteKey'] = $product;$wishlist[$i]['Product']['quantity'] = $qty;$i++;
}}$this->set('wishlist', $wishlist);}// save any changes made to qunitites of items// otherwise proceed to checkout information
function save(){$wishlist = $this->Session->read('Wishlist');$arr = $this->data['Wishlist'];$count = count($wishlist);//quantities changed
if ($this->params['form']['update']){foreach ($arr as $product => $qty){$wishlist[$product] = $qty;
}$this->Session->write('Wishlist', $wishlist);$this->redirect('/wishlist/');}//proceed to check out
else if ($this->params['form']['next']){$this->redirect('/orders/billing/');}else{$this->redirect('/wishlist');
}}// adds a product id to session// default quantity is onefunction add(){$product = $this->data;if (empty($this->data))
{$this->render();}else{$wishlist = $this->Session->read('Wishlist');$wishlist[$product['Product']['product_number']] = 1;
$key = 'Wishlist';$value = $wishlist;if ($this->Session->write($key, $value)){$this->flash($product['name'].' added.','/product_offerings');
}else{$this->set('wishlist', $this->data);$this->render();
}}$wishlist = $this->Session->read('Wishlist');$this->set('wishlist', $wishlist);}// delete key in session
function delete($key=null){$this->Session->del('Wishlist.'.$key);$this->redirect('/wishlist');}}?>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Shopping Cart Session Code

2006-06-22 Thread jeko

Thought this might be useful for some, manages a session cart/wishlist:

Session->read('Wishlist');
pr($products);
if (isset($products))
{
foreach ($products as $product => $qty)
{
$wishlist[$i] = 
$this->Product->find(array('product_number' =>
$product), 'product_number, name, wholesale');
$wishlist[$i]['Product']['deleteKey'] = 
$product;
$wishlist[$i]['Product']['quantity'] = $qty;
$i++;
}
}
$this->set('wishlist', $wishlist);
}

// save any changes made to qunitites of items
// otherwise proceed to checkout information
function save()
{
$wishlist = $this->Session->read('Wishlist');
$arr = $this->data['Wishlist'];
$count = count($wishlist);
//quantities changed
if ($this->params['form']['update'])
{
foreach ($arr as $product => $qty)
{
$wishlist[$product] = $qty;
}
$this->Session->write('Wishlist', $wishlist);
$this->redirect('/wishlist/');
}
//proceed to check out
else if ($this->params['form']['next'])
{
$this->redirect('/orders/billing/');
}
else
{
$this->redirect('/wishlist');
}
}

// adds a product id to session
// default quantity is one
function add()
{
$product = $this->data;
if (empty($this->data))
{
$this->render();
}
else
{
$wishlist = $this->Session->read('Wishlist');
$wishlist[$product['Product']['product_number']] = 1;

$key = 'Wishlist';
$value = $wishlist;
if ($this->Session->write($key, $value))
{
$this->flash($product['name'].' 
added.','/product_offerings');
}
else
{
$this->set('wishlist', $this->data);
$this->render();
}
}
$wishlist = $this->Session->read('Wishlist');
$this->set('wishlist', $wishlist);
}

// delete key in session
function delete($key=null)
{
$this->Session->del('Wishlist.'.$key);
$this->redirect('/wishlist');
}
}
?>


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Shopping Cart in CakePHP

2006-06-11 Thread brandags

Hmm... So can you store a component in the session?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Shopping Cart in CakePHP

2006-06-11 Thread Carlos Mauricio Samour

I worked on a similar problem. I have not made a component (yet) But
this is what I did.
First on the controller I checked if the session data for my invoice
header data was stored.
I am new at cake.
if (!$this->Session->check('documentoventa'))
{
$sucursal = $this->Session->read('Sucursal');
$usuario = $this->Session->read('User');
$Documentoventa['fecha'] = 
$this->Session->read('Fecha');
$Documentoventa['numero_documento'] =
$correlativo['Correlativo']['correlativo'];
$Documentoventa['tipodocumentoventa_id'] = 1;
$Documentoventa['bodega_id'] = 
$sucursal['Bodega']['0']['id'];
$Documentoventa['cajero_id'] = $usuario['id'];
$this->Session->write('Documentoventa', 
$Documentoventa);

}
$this->set('documentoventa', 
$this->Session->read('Documentoventa'));
$this->set('data', $this->Session->read('Transaccion'));
$this->render();
Then when I want to save de products I did this.

if (!empty($this->params['data'])){
if (!$this->Session->check('Transaccion')){
$this->Session->write( 'Transaccion\'][\'0' ,
$this->params['data']['Transaccion']);
$this->Session->write('numero_transaccion', 0);
}
$numero_transaccion = 
$this->Session->read('numero_transaccion');
$numero_transaccion++;
$this->Session->write( 
'Transaccion\'][\''.$numero_transaccion
,  $this->params['data']['Transaccion']);
$this->Session->write('numero_transaccion', 
$numero_transaccion);

$this->set('data', $this->Session->read('Transaccion'));

}
$this->render('fact_detalle', 'ajax');

Again I am new at cake and most probably you could optimize this code.
I bases my selft loosely on the example in the wiki.
http://wiki.cakephp.org/docs:session.
Hope that helps. Let me know what you did I apreciate it.

On 6/10/06, brandags <[EMAIL PROTECTED]> wrote:
>
> I'm trying to make a simple shopping cart - just basically a way to
> store product id's in the session, and maybe a function that calls a
> view to display the cart.
>
> Should I be doing this as a regular controller, or should I make a
> component for it? Either way, how can I make the cart (as well as the
> displayCart() function, etc.) persist in the session?  What is the best
> way to do this?
>
> Thank you,
> Brandon
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Shopping Cart in CakePHP

2006-06-10 Thread Armando Sosa
I think component is the way to go. I've done a Cart component based on the example in the rails book but I lost it when my harddrive cecided to die :(On 6/10/06, 
brandags <[EMAIL PROTECTED]> wrote:
I'm trying to make a simple shopping cart - just basically a way tostore product id's in the session, and maybe a function that calls aview to display the cart.Should I be doing this as a regular controller, or should I make a
component for it? Either way, how can I make the cart (as well as thedisplayCart() function, etc.) persist in the session?  What is the bestway to do this?Thank you,Brandon

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Shopping Cart in CakePHP

2006-06-10 Thread brandags

I'm trying to make a simple shopping cart - just basically a way to
store product id's in the session, and maybe a function that calls a
view to display the cart.

Should I be doing this as a regular controller, or should I make a
component for it? Either way, how can I make the cart (as well as the
displayCart() function, etc.) persist in the session?  What is the best
way to do this?

Thank you,
Brandon


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---