0

In my shopping cart there is an edit button for each product! I would like to know how do I get to that phtml page for edit? I don't seem to see an edit.phtml or such

I'm passing in a parameter from the shopping cart and would like to see if it got there okay :)

3

On clicking edit in shopping cart page it's showing the product's view.phtml file the only difference is instead of showing 'Add to cart' (frontend\rwd\default\template\catalog/product/view/addtocart.phtml) it's displaying 'Update Cart'(frontend\rwd\default\template\checkout/cart/item/configure/updatecart.phtml). So you can pass the passed parameter from the cart could be fetched in updatecart.phtml.

If you explain the question clearly like what parameter you need to fetch in the edit page, I could work and see.

| improve this answer | |
  • Hi! Thanks for the quick response. In the cart I have it so each item has an areasJson which is a huge string. If possible I don't want to send it through the URL as its very long! Within the cart each individual item has an $areasJson associated with it that is a php variable. If possible could I stuff the long string into an object / array and pass that through the url? Or could you explain how I could do it through a controller? – CodingMageSheen Aug 6 '16 at 8:33
  • I'll be sure to upvote your answer if it works too thanks for taking the time to help me ^_^ – CodingMageSheen Aug 6 '16 at 8:33
  • Hi! My idea is better to assign the $arrayjson into an input hidden field and fetch the value where you need. – Vigna S Aug 6 '16 at 9:15
  • I can place that hidden field in the cart? and it will show up in the edit page? This sounds like it could work! What's confusing to me though is that the edit page doesn't share the same <divs> – CodingMageSheen Aug 6 '16 at 9:17
  • If I saved the info to a hidden input field in the Cart, how would I access that exact input in the edit page? – CodingMageSheen Aug 6 '16 at 9:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.