Various Problems on Front End Variant Edit

  • Posts: 12
  • Thank you received: 0
  • Hikamarket Frontedition Hikashop Business
3 days 21 hours ago #341607

-- url of the page with the problem -- : dadutscentral.com/index.php/component/hi...action-product/cid-4
-- HikaShop version -- : 4.5.1
-- HikaMarket version -- : 4.1.0
-- Joomla version -- : 4.1.0
-- PHP version -- : 7.4.29
-- Browser(s) name and version -- : 100.0 Firefox

Hey guys,

I'm having several problems when editing variants in the front end.

- the image delete button doesn't work

- the tinymce editor doesn't load

- delete button in my Specifications custom field doesn't work

- using upload button in Specification fields causes a "Access Forbidden" error

All of these functions work properly on the Product tab but not on the Variants.

The one problem on the Product tab is the tinymce window loads a bit funny with only the top half useable.

I've installed latest versions of HikaShop and HikaMarket

I've tested in both Rocket Theme and default templates.

The super user login I sent you for an earlier problem still shouid work.

Many thanks for your attention,

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

  • Posts: 25249
  • Thank you received: 3908
  • MODERATOR
3 days 7 hours ago #341614

Hello,

All the issues you describe indicates a JavaScript error in the page which stop the execution of the JS.
In such case, best is to open the browser console and check for errors.

But in your case, I suppose it's something related to your template.
In the "Network", we can see that the content loaded do not include JavaScript.
The last line visible in that content is

<input type="hidden" name="data[variant][product_id]" value="546">
In the "productmarket/variant" view, after that line, some JavaScript is displayed so it can be processed by the page after the block is received.
If there is no JS in the page, the elements can't be initialized.

Seeing the source code of the page, we can see that "inline" JS is added in the "head" section of the page ; which mean that the content is modified by a plugin.

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.

  • Posts: 12
  • Thank you received: 0
  • Hikamarket Frontedition Hikashop Business
2 days 19 hours ago #341615

Hey Jerome,

Thanks again for the quick reply....on a weekend no less...thank you.

I reviewed my plugins and attempted shutting down anything that might re-position those scripts. Nothing I tried changed the behavior.

So, I tried another approach. I built a new "bare bones" site consisting only of Joomla 4.1 and the recent versions of HikaMarket and Hikashop I downloaded Friday.

I'm still getting the same non-performing scripts on the "bare bones" site !

I also saw a Notice appearing at the bottom of the Variants tab that I had missed before. I verified that this appears on the original site as well.

Notice: Array to string conversion in /home/safety/public_html/components/com_hikamarket/views/productmarket/tmpl/variant.php on line 248

You can checkout the "bare bones" site at dadutscentral.com/site2 .

I'll send you a user name and password via the contact form for site2.

Thanks again for your attention,

Cheers,

Dave

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

  • Posts: 25249
  • Thank you received: 3908
  • MODERATOR
2 days 16 hours ago #341616

Hello,

Please edit the file "components/com_hikamarket/views/productmarket/view.html.php" and replace the line

	protected $triggerView = true;
By
	protected $triggerView = true;
	protected $allowInlineJavascript = true;

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.

  • Posts: 12
  • Thank you received: 0
  • Hikamarket Frontedition Hikashop Business
2 days 13 hours ago #341617

Thanks again Jerome.

That fixed most of it.

Site is still not loading the Description field properly when editing variants.

No title. No tinymce editor.

Verified that on "bare bones" site as well.


Cheers,

: D

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

Moderators: Obsidev
Time to create page: 0.066 seconds
Powered by Kunena Forum