Skip to main content

Edit Variants The access to this page is forbidden

More
11 years 7 months ago #190063 by 888
-- HikaShop version -- : 2.3.5
-- HikaMarket version -- : 1.5.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.14-1

Hi
Edit Variants on front end i get: The access to this page is forbidden
in admin, default store access checkbox value is on

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #190067 by Jerome
Hi,

Would it be possible to have more details about the issue ?
So I will be able to reproduce your configuration and reproduce the issue in my local website.

Thanks

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.

More
11 years 7 months ago #190074 by 888
Same bug is on your demo site : demo.hikashop.com/index.php/en/hikamarke...product/edit/cid-127
test add Characteristic on Product in demo site and add and edit Variants you get Error The access to this page is forbidden

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #190080 by Jerome
Hi,

Please provide a full explanation.
The link you gave does not point to an existing product ; so I don't know if there is a bug or if the demo website has been reset.
I'm not able to understand your process or reproduce it.

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.

More
11 years 7 months ago #190107 by 888
1. in front end login as vendor I start to go to vendor-control-panel and hit Characteristics - new name test ADD VALUE 1 ADD VALUE 2 ADD VALUE 3 save.
2. go to product - > new and make one name it test_Characteristics add the new Characteristics - test save
3. open product test_Characteristics hit Variants add Variants name 1 add Variants name 2 add Variants name 3 save
4. hit edit (pencils) get Error The access to this page is forbidden
The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago - 11 years 7 months ago #190120 by Jerome
Hi,

Thanks, I finally got it.

It is something I already fix for HikaMarket 1.6.0 so that's why I couldn't reproduce it in my local websites.
You have to edit the file "administrator/components/com_hikamarket/helpers/helper.php" and replace the line
Code:
$query = 'SELECT count(a.product_id) FROM ' . hikamarket::table('shop.product') . ' AS a WHERE a.product_id = '. (int)$product_id . ' AND a.product_vendor_id = ' . (int)$vendor_id;
By
Code:
$query = 'SELECT count(pr.product_id) '. ' FROM ' . hikamarket::table('shop.product') . ' AS pr '. ' LEFT JOIN ' . hikamarket::table('shop.product') . ' AS pa ON (pr.product_type = ' . $db->Quote('variant') . ' AND pa.product_id = pr.product_parent_id) '. ' WHERE pr.product_id = '. (int)$product_id . ' AND (pr.product_vendor_id = ' . (int)$vendor_id . ' OR (pr.product_vendor_id = 0 AND pa.product_vendor_id = ' . (int)$vendor_id . '))';
and it will fix the issue.

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.
Last edit: 11 years 7 months ago by Jerome.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #190121 by 888
is HikaMarket 1.6.0 out ?

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #190122 by Jerome
Hi,

Not yet ; I'm still working on it (but the release is close).

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.199 seconds
Powered by Kunena Forum