Jump to content

shopmaker

Member
  • Content Count

    8
  • Joined

  • Last visited

Posts posted by shopmaker


  1. Cubecart version 6.2.4
    PHP version 7.2.31

    I have an issue with my store. I've just discovered that for products with options the stock levels are being ignored and a customer can enter any quantity and purchase them. For products without options the stock level is being respected and an over-quantity order is correctly limited to whatever the stock level is. 

    On the options pages I have checked "Use stock level" next to the relevant options in the matrx, with the stock level entered there too.

    I'm not sure if this is relevant, but I'm also getting the following error recurring in the error_log: 
     

    [20-Jun-2020 15:45:39 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/tvcommco/public_html/store/classes/db/database.class.php on line 692
    [20-Jun-2020 15:45:46 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/tvcommco/public_html/store/classes/db/database.class.php on line 692
    [20-Jun-2020 15:47:08 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/tvcommco/public_html/store/classes/db/database.class.php on line 692

    Any help gratefully received! 

    Thank you,

    Andy.

    PS. I can edit PHP but I have no clue how it works ūüėČ


  2. So just to clarify, in the following instructions the "http://" is changed to "https://" in two places, which made it work for me. Initially I'd changed the "http://" only line 27 and got a banner saying that it had failed to update, but it's working fine now after changing both.

    From the post here:https://github.com/cubecart/v6/issues/2165

    /begin/

    So, in settings.currency.inc.php, find:

    if (($request = new Request('www.ecb.europa.eu', '/stats/eurofxref/eurofxref-daily.xml')) !== false) {
      $request->setMethod('get');
      $rates_xml = $request->send();
    

    Change to:

    if (($request = new Request('www.ecb.europa.eu', '/stats/eurofxref/eurofxref-daily.xml')) !== false) {
      $request->setMethod('get');
      $request->setSSL();
      $rates_xml = $request->send();
    

    A few lines later, find:

    $rates_xml = file_get_contents('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml');
    

    Change to:

    $rates_xml = file_get_contents('https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml');

     

    /end/


  3. Cubecart v 6.2.2
    Browser Chrome
    Windows 10

    Hi. I'm new to Cubecart and have set up a new store over the last two weeks which is now live. 

    I've pretty much got all of it going to my liking. I've installed the Kurouto skin and noted that a few options stopped working, such as "hide document title". This is not a big issue and I can live with it, but the following problem is bugging me. When I first installed I tried the currency update option it worked fine and it fetched the rates no problem. Now I try it and all I get is a blank screen and the following error in the system error log:

    [Exception] /home/tvcommco/public_html/store/admin_xxxxxx/sources/settings.currency.inc.php:37 - String could not be parsed as XML

    If anyone could point me to a solution I'd be very grateful. My store address is https:www.welovefabric.co.uk/store

    Thank you.

×
×
  • Create New...