-
- 137 Posts
Hi Hope someone could point me in the right direction,
I have a project that will require a customer to login to use the shop side of the site, the product being sold will be differenty discounted depending on a pre aggreed amount, is there a way i can somehow use modx x to do this?
I would also like to intergrate Foxy Cart as the shopping cart.
Not sure how easly this can be done?
-
- 361 Posts
There are a handful of stores doing this, so yeah, it’s definitely possible. The bigger question is how you’re handling your users, either in FoxyCart -> MODx, or MODx -> FoxyCart.
Either way getting the discount in place is as simple as a PHx :mo=`Group` call in your add-to-cart link/form. If you have a more specific example we could walk through it together.
-
- 137 Posts
Sorry for the Delay have been on holiday,
I would probably let MOdx deal with the customers and use foxy cart as a basic cart.
But i am very wet behind the ears re PHx : Mo .
Thanks for your reply.
-
- 361 Posts
Basically it’d be something like this:
[+phx:mo=`Reseller`:then=`[*product_price_reseller*]`:else=`[*product_price*]`+]
Or you could do some math, like...
[+phx:mo=`Reseller`:then=`[*product_price:math=`?*.80`*]`:else=`[*product_price*]`+]
That’d give you 80% of the product_price for resellers.
Make sense? You could do the same thing to add a quantity discount or any other custom modifiers, like:
[+phx:mo=`Reseller`:then=`
<input name="blah" value="blahblah" />
`+]
Make sense?
-
- 137 Posts
I think this might be beyond me, do you know if there is a tutorial re this as it make some sence but i have very little knogledge of php but this does sound like somthing that will do the job!
-
- 361 Posts
How about you post the "add to cart" code (a link or form) that you have already and we’ll use that as an example?
-
- 137 Posts
Basicly i have set up ditto, for this instance i am selling door panels, so you get a grapical chioce (created by ditto) you click the panel you would like then you get to another page with further choices eg glass design for that panel, then you click it to choose, then you get another list of choices ie letterplate, sizes, colour (the above form) that then gets passed to foxy cart, hope this makes scence?
It would be a lot more readable if you put your code between BBcode code tags (clicking on the # code icon in the menu adds the tags automatically).