Jump to content

Dirty Butter

Moderator
  • Posts

    6,634
  • Joined

  • Last visited

  • Days Won

    139

Posts posted by Dirty Butter

  1. Support for one month doesn't cost that much. I'll be back after I've taken a look.

    6 minutes ago, Kira said:

    Anyhow.. is there a way to get my custom skin that I bought from someone to work with the new version of cubecart and the recaptcha without costing me that much money? Sadly I can't afford 130 dollars right now.

    It is possible to use file compare software and compare each file in the templates files and merge your edits. Possible does NOT mean easy, particularly if you're not accustomed to fiddling with the code.

    Do you have any screenshots of your "nice looking" store?

    I'm making an assumption I shouldn't have about merging code - was your custom skin a v6 skin based on Foundation?

  2. I'm totally stumped, but my help skills are very limited. Save and rename your .htaccess file. CC will create one again - just on the chance there is something in your file that is corrupting or re-directing the notification from PP.

    Is there anything unusual about your install? Like on your own server? Is the store at the root or a subdomain? If subdomain, is there a Wordpress installed at the domain root?

  3. I added this to the Description box on the Standard PayPal.

    https://dirtybutterestates.com/images/source/P/paypal.jpg

    The wording "Choose Payment Method" can be changed by going to Store Settings>Languages>click on your flag>drop down to your PayPal Gateway and change the wording for select.

    I tried leaving it blank, and that worked as well.

  4. There's a new section in maintenance.index.inc.php in a recent 6.1.8 commit (NOT IN 6.1.7)

    /* Code to break out images from one massive folder into seperate ones 
    $image_path = 'images/source/';
    foreach (glob($image_path.'*') as $filename) {
        if(is_file($filename)) {
    
        	$base_name = basename($filename);
        	$folder_name = strtoupper(substr($base_name,0,1));
        	$folder_path = $image_path.$folder_name;
    
        	if(!file_exists($folder_path)) {
        		mkdir($folder_path);
        	}
    
        	rename($filename,$folder_path.'/'.$base_name);
    
        }
    }
    
    
    $files = $GLOBALS['db']->select('CubeCart_filemanager', '*');
    foreach($files as $file) {
    	$folder = strtoupper(substr($file['filename'], 0, 1));
    	$GLOBALS['db']->update('CubeCart_filemanager', array('filepath' => $folder.'/'), array('file_id' => $file['file_id'], 'filepath' => null));
    }
     END OF IMAGE FOLDERS CODE */

    I've tried, ever since folders could be added to FileManager, to gradually move images over to variously named file folders. I've made a hopeless mess that I just gave up on.

    I've tested this 6.1.8 commit code as shown to add 0-1,A-Z folder structure to a test site. All I had to do was un-comment it and go to Maintenance. It changes the file structure in FileManager automatically. It works great. BUT it ignores files that are already in folders (which is a good thing if you like your folder structure). If you like your folder structure you probably wouldn't want to enable this section, anyway.

    I would love to be able to re-engineer this code segment to TAKE ALL IMAGES OUT of existing folders, without losing their product associations. Then I could run it again, as the code stands, and get a nice neat 0-1, A-Z folder structure for all our images.

  5. It looks like admin/source/products.index.inc.php has an area concerning Sorting:

    	// Sorting
    	$current_page = currentPage(array('sort'));
    	if (!isset($_GET['sort']) || !is_array($_GET['sort'])) {
    		$_GET['sort'] = array('updated' => 'DESC');
    	}
    	$thead_sort = array (
    		'status'   => $GLOBALS['db']->column_sort('status', $lang['common']['status'], 'sort', $current_page, $_GET['sort']),
    		'digital'   => $GLOBALS['db']->column_sort('digital', $lang['common']['type'], 'sort', $current_page, $_GET['sort']),
    		'image'   => $lang['catalogue']['title_image'],
    		'name'    => $GLOBALS['db']->column_sort('name', $lang['catalogue']['product_name'], 'sort', $current_page, $_GET['sort']),
    		'product_code'  => $GLOBALS['db']->column_sort('product_code', $lang['catalogue']['product_code'], 'sort', $current_page, $_GET['sort']),
    		'price'   => $GLOBALS['db']->column_sort('price', $lang['common']['price'], 'sort', $current_page, $_GET['sort']),
    		'stock_level'  => $lang['catalogue']['title_stock'],
    		'updated'   => $GLOBALS['db']->column_sort('updated', $lang['catalogue']['title_last_updated'], 'sort', $current_page, $_GET['sort']),
    		'translations'  => $lang['translate']['title_translations']
    	);

    Not sure if that helps you or not. Hopefully Bsmither will be back on for a bit.

    Of course, please be sure to keep a clean backup copy before fiddling. Not sure if you would need to clear CC and browser cache for admin changes or not, but always a good idea.

     

  6. I wonder if you could make the Print Order Form do what you want in some way?

    18 hours ago, SergeiG said:

    Actually, I would like to disable sending auto emails with order confirmations (while order status is "pending") and send emails only when status changes on "Processing".

    As far as I can tell all the code controlling when an email is sent is in cubecart.class.php.

    You can tell a lot about the flow of code by enabling Firebug in FireFox. Right click to Inspect element and watch the Net waterfall.

    Update!! UGH! There's also code in order.class.php involved in when the email is sent.

    • Like 1
×
×
  • Create New...