1

i am using magento 1.9. when clicking add to cart button, want to add customer id (who logged in) at the end of product URL (like http://www.google.com/product_1&cusomer_id=1) is it possible?

  • you can easily get customer id from session – Keyur Shah Jul 10 '15 at 10:00
1

Why do you want to do it? It is not safe enough to do so, It will be something like:

$this->getAddToCartUrl($product)."&customer_id=".$customerData->getId()
| improve this answer | |

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.