[Skip to main content](#vessel-content)

#   Duplicate product creation on vendor product creation page

##

- **[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")**
- [![rfonta's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30933-rfonta "View rfonta's Profile") Topic Author
- [ Offline](/forum/user/30933-rfonta)

Less More

- Posts: 105
- Thank you received: 2
-
-

9 years 10 months ago [\#258716](#258716) by [rfonta](/forum/user/30933-rfonta "View rfonta's Profile")  *[Duplicate product creation on vendor product creation page](/forum/22-market-bug-report/888132-duplicate-product-creation-on-vendor-product-creation-page#258716 "-- HikaMarket version -- : 1.6.7  Hello, when a vendor creates a product and then refreshes the product list page (see image enclosed where you can see twice the same products; id id that 2 times in that case) the product is created again. What is the best way to solve this?  Kind regards Richard")* was created by *[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")*

-- HikaMarket version -- : 1.6.7

Hello,
when a vendor creates a product and then refreshes the product list page (see image enclosed where you can see twice the same products; id id that 2 times in that case) the product is created again.
What is the best way to solve this?

Kind regards
Richard

- [ ![2017-01-0309&#95;47&#95;05-Photos.png](/forum/attachment/35387) ](/forum/attachment/35387 "...&#95;05-Photos.png") [ ](/forum/attachment/35387?download=1 "...&#95;05-Photos.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4ODEzMi1kdXBsaWNhdGUtcHJvZHVjdC1jcmVhdGlvbi1vbi12ZW5kb3ItcHJvZHVjdC1jcmVhdGlvbi1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 10 months ago [\#258728](#258728) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Duplicate product creation on vendor product creation page](/forum/22-market-bug-report/888132-duplicate-product-creation-on-vendor-product-creation-page#258728 "-- HikaMarket version -- : 1.6.7  Hello, when a vendor creates a product and then refreshes the product list page (see image enclosed where you can see twice the same products; id id that 2 times in that case) the product is created again. What is the best way to solve this?  Kind regards Richard")*

Hi,

When the user refresh the page he re-submit the product creation form.
It could be possible to use a "post redirect" trick in order to avoid the form re-submission but it will require to modify the HikaShop core to do so.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4ODEzMi1kdXBsaWNhdGUtcHJvZHVjdC1jcmVhdGlvbi1vbi12ZW5kb3ItcHJvZHVjdC1jcmVhdGlvbi1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")**
- [![rfonta's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30933-rfonta "View rfonta's Profile") Topic Author
- [ Offline](/forum/user/30933-rfonta)

Less More

- Posts: 105
- Thank you received: 2
-
-

9 years 10 months ago [\#258753](#258753) by [rfonta](/forum/user/30933-rfonta "View rfonta's Profile")  Replied by *[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")* on topic *[Duplicate product creation on vendor product creation page](/forum/22-market-bug-report/888132-duplicate-product-creation-on-vendor-product-creation-page#258753 "-- HikaMarket version -- : 1.6.7  Hello, when a vendor creates a product and then refreshes the product list page (see image enclosed where you can see twice the same products; id id that 2 times in that case) the product is created again. What is the best way to solve this?  Kind regards Richard")*

Hello,

thanks for the answer; I understand the issue, but shouldn't this type of behaviour be prevented by the application natively??

I don't know very well enough the core to do myself the modification; could you please instruct a bit?

regards

Richard

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4ODEzMi1kdXBsaWNhdGUtcHJvZHVjdC1jcmVhdGlvbi1vbi12ZW5kb3ItcHJvZHVjdC1jcmVhdGlvbi1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 10 months ago [\#258757](#258757) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Duplicate product creation on vendor product creation page](/forum/22-market-bug-report/888132-duplicate-product-creation-on-vendor-product-creation-page#258757 "-- HikaMarket version -- : 1.6.7  Hello, when a vendor creates a product and then refreshes the product list page (see image enclosed where you can see twice the same products; id id that 2 times in that case) the product is created again. What is the best way to solve this?  Kind regards Richard")*

Hi,

In the HikaMarket front-end product controller, please replace Code:

JRequest::setVar('cid', null); return $this-&gt;listing();

By Code:

$app = JFactory::getApplication(); $app-&gt;redirect( hikamarket::completeLink('product&amp;task=listing', false, true) ); return false;

And it should do the trick.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4ODEzMi1kdXBsaWNhdGUtcHJvZHVjdC1jcmVhdGlvbi1vbi12ZW5kb3ItcHJvZHVjdC1jcmVhdGlvbi1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.055 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
