Jump to content

Configuring site after upgrade to v6


dcorc

Recommended Posts

I am setting up a site in v6, and would be grateful for some advice/help.

 

I have a page which lists products: (see attached image)

 

I want to get rid of the sidebars on the right - I do not want "featured" "best sellers" or "on sale" boxes to appear there (or anywhere on the site).

 

I would also like the "buy now" button on each item to instead take me through to the individual item's page, or lose the buy now button from the listing on this page.

 

Dave

 

 

 

 

Link to comment
Share on other sites

Delete the following from the content.homepage.php file

 

            <div class="marg-top">
               <div class="row collapse marg-top">
                  <div class="small-3 columns">
                     <input type="text" name="quantity" value="1" class="quantity required text-center">
                  </div>
                  <div class="small-9 columns ">
                     <button type="submit" value="{$LANG.catalogue.add_to_basket}" class="button small postfix">{$LANG.catalogue.add_to_basket}</button>
                  </div>
               </div>
            </div>

 

That will delete the buttom from the homepage will look at the category page solution now.

 

To remove from the category page delete the following from the content.category.php file

 

                      {else}
                      <div class="small-4 columns">
                         <input type="text" name="add[{$product.product_id}][quantity]" value="1" class="quantity text-center">
                      </div>
                      <div class="small-8 columns">
                         <button type="submit" value="{$LANG.catalogue.add_to_basket}" class="button small postfix">{$LANG.catalogue.add_to_basket}</button>
                      </div>

 

and this

 

                      {else}
                      <div class="small-3 columns">
                         <input type="text" name="quantity" value="1" class="quantity required text-center">
                      </div>
                      <div class="small-9 columns ">
                         <button type="submit" value="{$LANG.catalogue.add_to_basket}" class="button small postfix">{$LANG.catalogue.add_to_basket}</button>
                      </div>

 

as there are two different page layouts.

Link to comment
Share on other sites

Thank you, that is extremely helpful.

 

There is a further modification I'd like to do, which is to add a text field to the product page where customers can input a specific short piece of information which is then recorded as part of their order 

Link to comment
Share on other sites

The steps are:

1. Create a Product Option and choose "textbox" as it's method. Make it mandatory.

2. Assign the option to the Product. You can also add a price differential.

 

1. In admin, select Product Options from the left side navigation. Be on the Option Groups tab.

 

Add a New Group by entering a very short Group Name: Engraving. Enter a more detailed Description: A single line to be engraved on the inner side of the ring. Select from the Group Type: Textbox. Check the Required box. Click Save.

 

2. Bring a product up for editing. On the Options tab, choose Engraving from the Add New Option selector. Enter any price and weight differentials (i.e., 3.00 if using this option would add 3.00 to the base price of the item). Click the white-plus-in-green(?)-circle icon. Click Save.

Link to comment
Share on other sites

Thank you all, I am very appreciative of everyone's help here, and the advice given has all enabled me to make progress.

 

I'm afraid I still have some problems though. I have found a copy of the v4 version of the site which I have installed as an easyPHP (I want to get some info out of it about configuration of payment gateways), but I need to be able, I think, to set ssl to off on that copy. I have read that this can be done with a file called editconf,php which used to be available. I'm looking for a version which will work on v4 (I have a v3 version, but it throws an error at line 92)

Link to comment
Share on other sites

Make the following edit and see if editconf works for CC4:

Was:
include_once("includes/ini.inc.php");
include_once("includes/global.inc.php");
include_once("classes/db.inc.php");
$db = new db();
include_once("includes/functions.inc.php");
include_once("admin/includes/functions.inc.php");
 
Now:
    require "ini.inc.php";
    require "includes/global.inc.php";
    require_once "classes/db.inc.php";
    $db        = new db();
    require "includes/functions.inc.php";
    require($glob['adminFolder']."/includes/functions.inc.php");

 

Link to comment
Share on other sites

Actually, the info I was trying to get by accessing the v4 version, I have now obtained by other means, so I don't immediately need an editconf.php that works in v4 (though I suppose having such might be useful for others?).

 

My next problems (sorry, I'm getting a bit embarrassed by this, however.....) are that I have the "all-in-one" shipping module installed, and the sagepay gateway.

 

So, I take a purchase through and, on the basket page I do not see VAT added (which I'm assuming I should see, it is set as standard rate in the shipping module, and standard as 20% in tax rules).

 

Also, when I get to the gateway page, it is completely blank.

Link to comment
Share on other sites

Ok, trying to take an order through to the sagepay gateway, I get the following error log:

 

[28-Feb-2015 14:09:34] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:09:34] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:09:34] PHP Warning:  array_merge() [<a href='http://docs.php.net/manual/en/function.array-merge.php'>function.array-merge.php</a>]: Argument #1 is not an array in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/cubecart.class.php on line 864
[28-Feb-2015 14:09:35] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:09:46] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:09:46] PHP Warning:  No callback method defined. in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/cubecart.class.php on line 284
[28-Feb-2015 14:09:46] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:10:17] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:10:20] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:10:20] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:10:20] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:10:46] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:12:16] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:12:20] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:12:20] PHP Warning:  substr() expects parameter 3 to be long, string given in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/catalogue.class.php on line 1269
[28-Feb-2015 14:12:25] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:12:25] PHP Warning:  substr() expects parameter 3 to be long, string given in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/catalogue.class.php on line 1269
[28-Feb-2015 14:12:25] PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/db/database.class.php on line 574
[28-Feb-2015 14:12:25] PHP Notice:  `product_id` is not allowed as a key in 'CubeCart_image_index AS i INNER JOIN CubeCart_filemanager AS f ON i.file_id = f.file_id' table! in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/db/database.class.php on line 847
[28-Feb-2015 14:12:33] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:12:37] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:12:46] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:12:50] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:12:59] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:13:01] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:13:01] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:16:36] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:16:39] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:16:39] PHP Warning:  No callback method defined. in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/cubecart.class.php on line 284
[28-Feb-2015 14:16:39] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:16:41] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:16:44] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:16:44] PHP Warning:  No callback method defined. in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/cubecart.class.php on line 284
[28-Feb-2015 14:16:44] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:16:46] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:16:47] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:16:47] PHP Warning:  No callback method defined. in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/cubecart.class.php on line 284
[28-Feb-2015 14:16:47] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:17:46] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:17:58] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:17:58] PHP Warning:  No callback method defined. in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/cubecart.class.php on line 284
[28-Feb-2015 14:17:58] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:18:26] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:19:09] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:20:27] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:20:28] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:20:40] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:21:22] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:21:58] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:21:59] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:22:06] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:22:07] PHP Warning:  No callback method defined. in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/cubecart.class.php on line 284
[28-Feb-2015 14:22:07] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:22:10] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:22:10] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:22:10] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
[28-Feb-2015 14:22:10] PHP Warning:  Missing argument 2 for Order::serializeOptions(), called in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/order.class.php on line 1055 and defined in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/order.class.php on line 640
[28-Feb-2015 14:22:10] PHP Fatal error:  Call to undefined function mcrypt_encrypt() in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/modules/gateway/SagePay/gateway.class.php on line 56
Link to comment
Share on other sites

All of the line 596 errors require that your hosting provider fix the open_basedir restriction problem.

 

Array_merge, line 864 error is due to be fixed in CC600Gold.

 

No callback method, line 284 error is interesting. A page request was made to your site with index.php?_g=xxx but xxx is not one of 5 valid values. We will need to look at web server logs to find the cause of this one.

 

Substr() expects parameter 3 to be long, string given, line 1269 error (I'm guessing line 1282 for beta6) could be referring to:

$GLOBALS['config']->get('config', 'product_precis')

So, in admin, Store Settings, Layout tab, make sure Length of product precis is a number.

Link to comment
Share on other sites

The Fatal Error, the last error in the list, is the error that crashes PHP and gives you a empty screen:

Call to undefined function mcrypt_encrypt() in modules/gateway/SagePay/gateway.class.php on line 56

 

You will need to contact your hosting provider and tell them you need for your PHP to have the mcrypt extension enabled.

Link to comment
Share on other sites

The Missing argument 2 for Order::serializeOptions() on line 640 is a new one. It will be fixed in CC600Gold.

 

In the meantime, make this edit:

Near line 1055, was:
'product_options' => $this->serializeOptions($item['options'])
 
Now:
'product_options' => $this->serializeOptions($item['options'], $item['id'])
Link to comment
Share on other sites

Again, thank you for all of this help.

 

I've implemented the changes suggested (except the basedir restriction one) and it now goes through to the sagepay gateway

 

It is still throwing errors:

[02-Mar-2015 09:41:03] PHP Warning:  array_merge() [<a href='http://docs.php.net/manual/en/function.array-merge.php'>function.array-merge.php</a>]: Argument #2 is not an array in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/admin/sources/orders.index.inc.php on line 224
[02-Mar-2015 09:41:03] PHP Notice:  `cart_order_id` is not allowed as a key in 'CubeCart_order_notes' table! in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/db/database.class.php on line 847
[02-Mar-2015 10:16:14] PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/db/database.class.php on line 574
[02-Mar-2015 10:16:14] PHP Notice:  `product_id` is not allowed as a key in 'CubeCart_image_index AS i INNER JOIN CubeCart_filemanager AS f ON i.file_id = f.file_id' table! in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/db/database.class.php on line 847
[02-Mar-2015 10:20:24] PHP Warning:  file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/brenif857.easyvserver.com/:/tmp/) in /var/www/vhosts/brenif857.easyvserver.com/asllocksshop.co.uk/classes/session.class.php on line 596
 

 

One remaining problem is that it is not adding tax to subtotal and shipping, despite being set to do so. sad.png - EDIT - got that working now :)

Link to comment
Share on other sites

Still got a few headaches here.

 

On my public products page it is displaying 6 products - "more" gives me another 6 which change each time I hit "more".

 

at the moment on the "Layout" page in Admin, "products per page" is blank. If I enter any number in it, it only shows me the first six products

 

There ought to be 63. products on the page, and I'd like to just show them all, by default.

 

The other thing I'd like to change is the number of orders shown per page in the Admin/orders listing. Currently it show 20 per page, I'd like it to show 100.

 

(I'm finding this all a bit embarrassing and frustrating, as in v4 it was really easy to make these sorts of changes, it was coded in a fairly obvious way on the relevant php page).

Link to comment
Share on other sites

I think the 6 and no more products showing is a bug they know about, perhaps fixed in the latest release, I hope. You should be able to fix the number of orders showing in Admin from orders.index.inc.php about line 624:

	$page = (isset($_GET['page'])) ? $_GET['page'] : 1;
	$per_page = 20;

.

Link to comment
Share on other sites

Thanks DB - actually, I've sorted out the number of products displaying by editing the config.xml (disabling cache helps!) smile.png

  <layout>
	<products>
		<perpage amount="63" />
		<perpage default="true" amount="63" />
		<perpage amount="24" />
		<perpage amount="48" />
		<perpage amount="96" />
	</products>
  </layout>
You should be able to fix the number of orders showing in Admin from orders.index.inc.php about line 624:

 

 

Excellent. Done. Thank you.

Link to comment
Share on other sites

There's one further thing I'm trying to implement.

 

In my v4 site, I needed to generate an invoice number for customers, and I did this by adding a new table, which I called cubecart_order_invnos, containing the fields cart_order_id and invoice_id (which is just an autoincrement number), and had a query which wrote to that table for orders which were set as processing or completed, using:

$result ="INSERT INTO CubeCart_order_invnos(cart_order_id) SELECT CubeCart_order_sum.cart_order_id FROM CubeCart_order_sum WHERE CubeCart_order_sum.status=2 OR CubeCart_order_sum.status=3 ON DUPLICATE KEY UPDATE cart_order_id = VALUES(cart_order_id)";

I'd like to be able to write to this table in v6 from a page in admin (I see I can do it in a "quick and dirty" way by running the query directly in admin/maintenance/query-database, but Id like to have it as a button to do a batch update on the admin/orders page)

 

..and to be able to show the results on the order summary table and in the order-print (just under the Order ID)

 

In v4 I had this working nicely, but, to be honest, in v6 I'm lost in the way things are coded. (I can see, in principle, that this could presumably be done similarly to the way that the tax amount is called from the "amount" field in the new cubecart_order_tax table - but I'm lost in all the code related to that :(  )

 

Grateful for any help or advice.

Link to comment
Share on other sites

Ok, I've now got a way of writing to that invnos table I mentioned in the post above. (basically modified a copy of the maintenance.sql page)

 

I'm still trying to get that to output back as a field in the admin orders list, and would be VERY grateful for any help.

 

I'm working with the idea that it would be analogous to the way that the value in the field "amount" is pulled from cubecart_order_tax table and displayed on the order summary print page? but I'm getting a bit lost in the code sad.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...