Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    May 2008
    Posts
    47
    Plugin Contributions
    0

    Default Reorder products with attributes

    I have a big problem.

    We have a software. How it works is, if you use our service, you download our software and create a custom product. Once you upload the custom product for us to 'finish', the software provides you with a shopping cart URL. this URL has the info of the characteristics of your custom product - attributes. Now when you login, you see your custom product, its attributes and the price for it.

    You cannot edit the attributes. We did special coding in such a way that the info pulled from the shopping cart URL is displayed in your order page but you cannot edit them. The price is dependent on the attributes.

    Now the main problem starts....how can a user place reorder? How can a user add the product to a Wish List?

    When placing a reorder, the original product shows up but not its Attributes. Only with the help of one of the attributes can we identify the order. Same goes with Wish list ( that is if a person uploads the custom product and logs in but then wants to order it at a later time, then he needs to save it some where right? We did not like it saved in the shopping cart. So we added the wishlist mod. ).

    we all know that wishlist and quick reorder do not copy the attributes to place an order again.

    However, i noticed something VERY WEIRD but GOOD.

    After we added the wishlist mod, ONE of the attributes is being passed and it shows up. This is soo cool. However, the other one is not showing up. ( We need both to identify your order and price correctly). We know that wishlist is not supposed to show any of the product attributes. But it does show the product attribute one. And after adding the wishlist mod, now even the quick order shows one of the attributes.

    My main issue is, i need a zen cart and PHP expert who can see why one of the attributes is in fact showing up filled in, and how can can use the same logic to pull the other attribute as well.

    If we can get both attributes filled in, my problem is solved.

    Can you help? Can you tell me where to go for help?

    This is almost the last thing left in my cart to launch the site.

  2. #2
    Join Date
    May 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: Reorder products with attributes

    I was just looking at the SHOPPING CART (more) Side Box.

    If we click on a product in the shopping cart, we get all the attributes of that product as well.

    What is we use the similar code to reorder? May be we need to change the table where to look for the info.

    But if we click on a button in the order history page called reorder, then we should be able to get the entire product and its attributes and a add to cart button.

    Is that do able?

    Does anyone know of any coder in PHP? I keep putting calls in commercial help wanted section but no one ever replies.

  3. #3
    Join Date
    May 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: Reorder products with attributes

    Can anyone help? Please? This is a SOS situation.

    I am not sure if anyone sees my posts.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Reorder products with attributes

    The attributes are stored in using the products_id, products_options_id, products_options_values_id, products_options_values_text and products_options_sort_order in the customers_basket_attributes

    If you look in the customers_basket you will see the related Product ...

    Note the products_id ... example:
    46:c5e309dd582d3e7b3c7c800281d1a885

    46 is the products_id ...

    c5e309dd582d3e7b3c7c800281d1a885 is just a method to distinguish which attributes go to which products_id when you have the same products_id with a different combination of attributes ...

    Sometimes this may appear to be the same, and sometimes it changes ... the point is, it links the two tables together to keep the product and associated attributes together ...

    Make an order with products with attributes and complete it like a customer ...

    Now, go look at the orders_products and orders_products_attributes tables ...

    Do you see the products_id?

    Look a little further and you will see the products_prid ... that is the products_id:attributeskey

    Look in the orders_products_attributes table ...

    See the orders_products_id in there? Now look a little further and you will see:
    products_options_id, products_options_values_id and the products_prid

    You can build the products for the cart for a re-order using these same values ...

    Just be careful if you use Downloads ... I had to do some wicked elfin magic rebuild a product with downloads ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    May 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: Reorder products with attributes

    I gave your instructions and the query worked.

    Then it took me a real long time to know where to make updates.

    Finally, I updated these two files

    tpl_order_history.php

    order_history.php

    Now, everything works. Cool!!!!

    However, a small issue is this:

    I only see one item in the order-history side box though I have ordered a few. How can is see more than one?

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Reorder products with attributes

    Peek in the Maximum Values:
    Recent Purchases Box- NOTE: box is disabled
    Number of products to display in the recent purchases box
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    May 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: Reorder products with attributes

    I looked...I had it set as 6.

    I never noticed it till now. But I am sure that this has happened all the time. Even before I made changes..I would only see one item.

    Could it be that my side box is small? Should I include more height or something?

  8. #8
    Join Date
    May 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: Reorder products with attributes

    Did you see this thread:

    forums.oscommerce.com/index.php?showtopic=309979&pid=1284920&st=0&#entry1284920

    This is a cool function in OSCOMMERCE. this is what we are working on...i wish we had it for Zen cart too. I dont know why my order history shows

    1. Product name instead of Order ID or JobID that identifies every item in the order. Users can have many orders for the same product but you see, there are different attributes. So I wish the quick reorder had orderID and not product as an entry.

    2. I wish the reorder worked just like the VIEW in the accounts history page. Just a click and all the info in that order will go as another order.

    But on later thoughts, i think view shows an order with multiple products in it. What if the user wants to order just one product....so i guess the quick reorder cannot have the orderID as the identifying factor.

    Hmm,.....now thinking of it, I am in a soup.

    The reorder in my case should work like this:

    1. Every item ordered should be available for reorder.

    2. The reorder capability should be next to every item ordered.

    Man..i feel so dejected..after all the hard work, i see that the way reorder is working, wont really work for me.

    Oh god...does anyone have a solution?

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Reorder products with attributes

    I don't have a solution handy, but one can always be written to manage a way to add to cart from the existing order on a per product basis so that the customer can actually move between any orders that they have made and just click along and update the shopping cart from them ...

    Not a simple processes, but not a killer either ...

    Just need some time and patience ...

    The information is all there to rebuild a product plus the attributes to add to the shopping cart ...

    Biggest issues is if there are downloads ... those are hard to rebuild from the orders ...

    As to the osC add-on ... just have to translate it, if this can actually do what you want it to do ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    May 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: Reorder products with attributes

    I think I need commercial help.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Quick reorder with attributes
    By southshorepizza in forum Managing Customers and Orders
    Replies: 1
    Last Post: 23 Nov 2013, 08:11 AM
  2. v150 display categories rather products items in best selling sidebox and quick reorder.
    By jimi007 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 5 Sep 2012, 09:51 PM
  3. Replies: 0
    Last Post: 4 Sep 2012, 02:14 PM
  4. products with attributes are attributes to other products
    By highlander in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 16 May 2007, 03:39 PM
  5. quick reorder sidebox - can it auto fill the attributes
    By seanscully in forum Managing Customers and Orders
    Replies: 0
    Last Post: 21 Mar 2007, 07:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg