Author Topic: Embed Code and Add product to order - mishap  (Read 1142 times)

Offline soapingsupply

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Embed Code and Add product to order - mishap
« on: October 21, 2017, 11:40:24 AM »
Abantecart version 1.2.10
can't update to 11 yet.
Browsers: Chrome,Firefox,Edge - no addons

Adding an item to existing order

I am thinking this is a hosting problem maybe with modsecurity but before I call them on it - some background.

First when adding a product to an existing order from the bottom Add Product area.  The screen grey's but no popup comes up - it really looks like it wants to open but just the grey screen.  It doesn't add at all.  This is consistent from the admin side and customer side.

No errors occur in the logs either.

Embed items
The image doesn't show anything on the left side. No image, name,blurb etc. It also doesn't show on the other site when posted in an php document or blog post -etc

Yes API is turned on
API key - yes key - no key tried
Admin API is on
no error log info



Top error is the priority but I'm not sure if both errors are affected by the same security problem or what.

Thanks for any insight you have on these.



Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4134
  • Karma: +202/-0
    • View Profile
Re: Embed Code and Add product to order - mishap
« Reply #1 on: October 24, 2017, 02:05:46 AM »
Hello.

You can also check browser console for javascript errors
“Chuck Norris is so amazing.”
― Mother Teresa

Offline soapingsupply

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Re: Embed Code and Add product to order - mishap
« Reply #2 on: October 25, 2017, 08:25:03 PM »
ok the Embed API has a  error:
SyntaxError: unterminated string literal 31:38

See Capture.PNG

As for the Add to existing order:
the add doesn't have any errors attached to it.  The screen grey's until you click on it.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4134
  • Karma: +202/-0
    • View Profile
Re: Embed Code and Add product to order - mishap
« Reply #3 on: October 27, 2017, 06:49:06 AM »
Hello.
On your screenshot no line numbers so hard to understand where is problem.
Maybe you have some specific characters in the product name or blurb?
“Chuck Norris is so amazing.”
― Mother Teresa

Offline soapingsupply

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Re: Embed Code and Add product to order - mishap
« Reply #4 on: November 01, 2017, 03:19:06 AM »
Sorry for the delay.  I clicked on the error in the js console and I added a capture with numbers.

There is no special characters in the blurb or product name.
Capture and JS-error are attached for this error.



Any ideas on the add product? the gray screen but no adding of a product? *re Adding an item to existing order
bootstrap.png is the only thing I can see interfering if the modal is not launched properly.  The file is there and permissions don't look out of the ordinary.





Offline soapingsupply

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Re: Embed Code and Add product to order - mishap
« Reply #5 on: November 20, 2017, 09:42:21 PM »
any ideas?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1773
  • Karma: +246/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Embed Code and Add product to order - mishap
« Reply #6 on: November 21, 2017, 05:00:18 AM »
as i see on JS-error.png screenshot you have only css-error filtered errors and warnings in devtools.
Click "JS" tab with orange circle and check errors there. then reload page
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline soapingsupply

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Re: Embed Code and Add product to order - mishap
« Reply #7 on: November 22, 2017, 02:56:11 PM »
if a picture is worth 1k words then a video might help.

product add problem from order screen

&feature=youtu.be

As far as the embed code - there was a simple return in the blurb that was causing the error.  As in going into the blurb and hitting the enter key and nothing else. - just erased that and it worked.


So if we can get the add product working that would be great.

This is via the admin but the customers cannot add products to an order either.


Hope this helps.
« Last Edit: November 23, 2017, 12:46:35 AM by Basara »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4134
  • Karma: +202/-0
    • View Profile
Re: Embed Code and Add product to order - mishap
« Reply #8 on: November 23, 2017, 12:55:24 AM »
Thank you for video.
Issue reported to bug tracker https://github.com/abantecart/abantecart-src/issues/1031
“Chuck Norris is so amazing.”
― Mother Teresa

Offline soapingsupply

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Re: Embed Code and Add product to order - mishap
« Reply #9 on: November 23, 2017, 10:33:57 AM »
Sorry for the confusion there were 2 topics for my post. 

First Problem.

The video is for the add product in the orders section.

Quote
if a picture is worth 1k words then a video might help.

product add problem from order screen

newbielink:https://www.youtube.com/watch?v=2lYDJPa32aI&feature=youtu.be [nonactive]


Second problem


The text underneath is just about the simple return in the blurb section. 

Quote
As far as the embed code - there was a simple return in the blurb that was causing the error.  As in going into the blurb and hitting the enter key and nothing else. - just erased that and it worked.

Thanks!

 

Powered by SMFPacks Social Login Mod