- Posts: 640
- Thank you received: 16
Redirect to the product page of a recent cloned product
- PeterChain
-
Topic Author
- Offline
Less
More
9 years 7 months ago #262924
by PeterChain
-- HikaShop version -- : 2.6.4
-- HikaMarket version -- : 1.7.1
-- Joomla version -- : 3.6.4
Hi,
When i'm in the vendor product list and i clone a product, the action redirects to the same page.
There's a way to redirect to the new created product page?
Thanks in advance,
-- Víctor
-- HikaMarket version -- : 1.7.1
-- Joomla version -- : 3.6.4
Hi,
When i'm in the vendor product list and i clone a product, the action redirects to the same page.
There's a way to redirect to the new created product page?
Thanks in advance,
-- Víctor
Please Log in or Create an account to join the conversation.
9 years 7 months ago #262929
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Redirect to the product page of a recent cloned product
Hi,
You can create an override for the HikaMarket vendor product listing and add the parameter "return_url" in the URL for the product copy.
The content for the parameter "return_url" should be url_encode and base64_encode.
But afterwards, if you want to redirect to the created product ; it would require some modification in the HikaMarket product controller but it would definitively require a modification of the HikaMarket import helper because the function copyProduct does not return the ID of the new product.
So, HikaMarket do not have any possibility to know what product has been created.
Regards,
You can create an override for the HikaMarket vendor product listing and add the parameter "return_url" in the URL for the product copy.
The content for the parameter "return_url" should be url_encode and base64_encode.
But afterwards, if you want to redirect to the created product ; it would require some modification in the HikaMarket product controller but it would definitively require a modification of the HikaMarket import helper because the function copyProduct does not return the ID of the new product.
So, HikaMarket do not have any possibility to know what product has been created.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
- PeterChain
-
Topic Author
- Offline
Less
More
- Posts: 640
- Thank you received: 16
9 years 7 months ago #262968
by PeterChain
Replied by PeterChain on topic Redirect to the product page of a recent cloned product
Big thank you Jerome for the clear and detailed answer.
We will try to go further with your indications tomorrow, and, please, is it possible that you could consider this requirement as a selectable configuration option for a coming version?
I bet we are not the only ones needing this kind of feature.
Best regards,
PeterChain.
We will try to go further with your indications tomorrow, and, please, is it possible that you could consider this requirement as a selectable configuration option for a coming version?
I bet we are not the only ones needing this kind of feature.
Best regards,
PeterChain.
Please Log in or Create an account to join the conversation.
9 years 7 months ago #262988
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Redirect to the product page of a recent cloned product
Hi,
Like explained in my previous message ; i can't because the main part is related to the HikaShop import helper.
So it does not depend on me (HikaMarket).
Regards,
Like explained in my previous message ; i can't because the main part is related to the HikaShop import helper.
So it does not depend on me (HikaMarket).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.218 seconds