This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Dawid

  • ****
  • 149 posts
Add to cart Button error
« on: March 21, 2018, 12:23:09 PM »
Hi i have problem , if i want add promotion to items https://xxxxxxx/osclasspay/item

button "add to cart" not working :( i see in console error js. :

 ReferenceError: ospButtonCartURL is not defined in file user.js:207:9




Whats its this problem :( Can help ?

*

MB Themes

Re: Add to cart Button error
« Reply #1 on: March 21, 2018, 12:32:38 PM »
@Dawid
It's added into footer. Make sure your footer is loading properly. It use to break loading of footer when there is PHP error.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dawid

  • ****
  • 149 posts
Re: Add to cart Button error
« Reply #2 on: March 21, 2018, 12:42:46 PM »
whats exaclly must find ?

*

MB Themes

Re: Add to cart Button error
« Reply #3 on: March 21, 2018, 12:47:10 PM »
@Dawid
If your footer is properly loaded, if not identify why.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dawid

  • ****
  • 149 posts
Re: Add to cart Button error
« Reply #4 on: March 21, 2018, 12:48:46 PM »
not exaclly understand, footer its normal loaded

*

MB Themes

Re: Add to cart Button error
« Reply #5 on: March 21, 2018, 12:56:34 PM »
@Dawid
What is url to issue?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dawid

  • ****
  • 149 posts
Re: Add to cart Button error
« Reply #6 on: March 21, 2018, 01:03:07 PM »
I send PM to YOU me friend :)

Marked as best answer by dawid.olszewski on March 21, 2018, 01:19:58 PM
*

MB Themes

Re: Add to cart Button error
« Reply #7 on: March 21, 2018, 01:13:28 PM »
Ensure you have this code in footer.php:

<?php osc_run_hook('footer') ; ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dawid

  • ****
  • 149 posts
Re: Add to cart Button error
« Reply #8 on: March 21, 2018, 01:17:03 PM »
Thanks work :) it also Yours link :) in this  hook   ;D