Jump to content

goober999

Member
  • Posts

    305
  • Joined

  • Last visited

Posts posted by goober999

  1.  it's a CubeCart v5.2.0 bug and I am sure a fix is coming soon. It's not something they can delay.
    For those who already upgraded and want a "fix" now. Here it is.

    Edit file: /classes/cubecart.class.php

    on line 2414 you'll find:
    if (isset($_POST['register']) && $_POST['register']==1) {
    change it to:
    if (isset($_POST['register']) && $_POST['register']=="Register") {

    Thanks
    /Goober
     
  2. bsmither is right, you can enhance/change any text string in any language. well, he is 99.44% right.

    The other 0.66% percent where you can't do that, is exactly in this location, the shipping dropdown.

    This text string comes from the actual name of the shipping method, and derived from the folder name? a bit weird I must admit. So if you really wanted to change this text, you would need to "hard code" it into the the template. Once hard coded, you should only have 1 shipping method enabled. If you're willing to to do that, let me know, i'll post instruction.

  3. Good Lord, you guys really don't get it... I appreciate you all trying to help but all you're doing is muddying up the water. You really need to understand CC v5 code and templates in order to answer this question.

    Like I said in my original response, $DATA.shipping is not a numeric value, it is a string. It is a formatted string that includes the currency symbol. You cannot do a mathematical compare on a string!

    The code should be

    
    {if ({$DATA.shipping}) == "0.00€" }(A Calcular)
    
    {/if}{$DATA.shipping}
    
    

    And because it is already formatted by the time it gets to the template, the above will only work for the active currency. Additional if else statements can be added to account for other currency supported by the shop

    Thanks

    /Goober

  4. Hi,

    The one thing you should do is figure out what the error is. Whenever CC v5 goes to a blank page, that means that there is a PHP coding error or code failure. CC5 goes out of its way to hide these errors.

    To see the error, get a copy of classes/debug.class.php from v5.0.5 and copy it into yout 5.0.7 folder. The files are exactly the same with the exception of one small block of code that allowed for these errors to be seen.

    This block of code is missing from 5.0.7 file.

    Edit this file and take the comment blocks out see below and save the file.

    
    /*
    
      if (isset($_GET['SHOW_ALL'])) {
    
       //Remove to see errors
    
       ini_set('display_errors', true);
    
      }
    
    */
    
    

    Once you've done that, add SHOW_ALL on the query string when you run the export and you will see all of the PHP errors. See what the error is, and fix it.

    Good luck!

    /Goober

  5. I've been working on a few CC5 stores recently that have required me to edit the core files, like catalog.class.php and gui.class.php

    I'm considering creating some new files and extending the classes to make the changes reasonably upgrade proof.

    Just wondering what other developers do when they modify the new CC5 files classes to make them future proof.

    CC v5 is built with extensibility in mind. There is no need whatsoever to modify core files. All mods, er the new term is Plugins, are written outside of core files and are upgrade proof. These plugins use a CC v5 feature called hooks. Learn them, love them, live them. They rock!

    Thanks

    /Goober

  6. Hi everyone,

    I downloaded cubecart and loved it. Iv added loads of categories for my shopping cart but noticed that the store front end is not updating.

    I have cleared all cookies, rebuilt sitemap and cleared cache and still nothing.

    Anyone got any ideas??

    When adding new categories, their default status is disabled. Check to see if they are disabled and then enable them if needed.

    /Goober

  7. Hello :)

    I am looking for both a solution of resizing the thumbnail images of both categorie icons as product icons.

    I am trying out the new cubecart 5, but can't find the option I am looking for in the admin.

    CC4 had this option in the admin to define the size of the thumbnails of product images that were uploaded in the shop, but I can't find this option in the new CC5 admin.

    Is it even there? Or am I just simply missing it?

    The thumbnails uploaded to CC5 are too tiny, and that's not really what I am looking for. I know I could re-upload all thumbnails again manually via the ftp, but considering that we are adding lots of products, I am not really looking forward to such an option.

    If it's not possible to change the size of the thumbs from the admin? or can anybody advice me which file from the ftp I should find and change so that the thumbnails will be uploaded in a bigger size?

    I hope someone can help me with this. I saw another topic with this kind of question unanswered *^^*

    Thanks in advance!

    Kind Regards,

    Miriam

    Hi,

    The image and thumbnail sizing as well as quality is controlled via config.xml file found in the root folder of the skin.

    Thanks

    /Goober

  8. Thanks, but not much of any CC5 plugins I can find anywhere and none for anything related to Customers or Registration.

    CC3.biz has exactly what I need but it's CC4 only "Customer Approval". Looking...

    Try this one http://www.cubecartforums.org/index.php?showtopic=15524

  9. Does anybody know how to randomize Latest Products?

    you can't really randomize from a limited number of products. If you wanted to randomize from the entire catalog than that would be easy.

    Thats what I would like to happen, i.e. in the Latest products box, I would like it to pick at random any Products from my catalog but chance them at random any time the page is viewed or refreshed.

    Any ideas on how i can do this? I done it in CC4, but can't figure it out in CC5

    try this

    Edit file: classes/cubecart.class.php

    Find this line

    $latestProducts = $GLOBALS['db']->select('CubeCart_inventory', false,  array('status' => '1', 'featured' => '1'), array('date_added' => 'DESC', 'product_id' => 'DESC'), (int)$GLOBALS['config']->get('config', 'catalogue_latest_products_count'));
    
    
    change it to this line
    
    
    
    $latestProducts = $GLOBALS['db']->select('CubeCart_inventory', false, false, 'RAND()', (int)$GLOBALS['config']->get('config', 'catalogue_latest_products_count'));

    Enjoy

    /Goober

  10. Hello Guys

    I have been trying to find a out to get the featured product to be static. I have looked through the admin section and I cant seem to find anything to help me out.

    I have seen on the forums for previous cubecart versions that you can alter the randomProd.inc.php file and set the $whereClause variable so that it will only read out a specific product_id from the database. However the code for CC5 is different to CC3.

    
    //$whereClause	= (isset($_GET['catId']) && is_numeric($_GET['catId'])) ? "AND I.cat_id=".$db->mySQLSafe($_GET['catId'])." AND I.cat_id > 0 AND C.hide != '1'" : "AND I.cat_id > 0";
    
    $whereClause = "WHERE product_id = '3'";
    
    $sql			= sprintf("SELECT I.name, I.image, I.productId FROM %1\$sCubeCart_inventory AS I, %1\$sCubeCart_category AS C WHERE I.cat_id = C.cat_id AND I.disabled != '1' AND C.hide = '0' AND (C.cat_desc != '##HIDDEN##' OR C.cat_desc IS NULL) %2\$s ORDER BY RAND(%3\$d) LIMIT 1", $glob['dbprefix'], $whereClause, $seed);
    
    $randProd		= $db->select($sql);
    
    
    
    
    
    
    Above is the altered $whereClause variable. It doesn't work. 
    
    
    
    If anyone has already solved this or has any idea on how to I would like to know.
    
    
    
    Regards,
    
    
    
    Reece Cropley
    
    
    Find and edit file called "classes/gui.class.php". Inside that file find this line of code

    Thanks

    /Goober

    if (($query = $GLOBALS['db']->select('CubeCart_inventory', false, array('status' => '1'), 'RAND()', '1')) !== false) {
    
    
    
    
    The above is the select statement for the featured product. edit that line to fit your needs. It should look like this to force product_id 3
    
    
    
    
    
    if (($query = $GLOBALS['db']->select('CubeCart_inventory', false, array('status' => '1', 'product_id' => '3'), 'RAND()', '1')) !== false) {
  11. Hi ALL

    Has anyone tried the Customer Groups section.

    The DEMO is not much use for this.

    Is it possible to add the groups price on EXCEL and then import all the products with the group prices.

    I do a lot of Wholesale and Retail so the way this has to work before i can upgrade.

    Currently using V4 with various Mods

    Thanks

    Yes you can do that. Setup your products and groups first. then knowing id for both you can upload your excel into cubecart_pricing_group table.

  12. man... that's a bummer. Might not upgrade after all then. Your v4 mod is working perfect for what I need.

    Don't despair. V5 Plugin to enhance group functionality is in the works and will be released shortly.

    Stay tuned to cubecartforums.org

    Thanks

    /Goober

    How about a surcharge for specific categories or products... not customer based but category based.

    Example... want to add a surcharge of 2-3% on Gold in a Coin Store for transactions(All transactions are credit card).

    Haven't tried the options in CC5 yet to see if it will accomplish this... will your mod allow this?

    Thanks,

    Shane

    Sorry, no. But go ahead and post what you need over at cubecartforums.org

  13. Thought I could use the demo to see how this works but I "don't have permission". So...

    What does Customer Groups do - does it allow me to set certain customers up to have an instant discount? I think that's what it's for but want to be sure before I upgrade. I'm currently using a mod to do this with v4.

    Very excited about v5, great work guys!!!

    Also... is there a list of new features anywhere to compare v4 to v5?

    Once you add a customer to a group they will get group/discount prices on those products that have been configured for group pricing. Each product will need to have special price configured for each group. It's not an overall % off discount.

  14. @dijitul media - I agree with your comments. Mod/skin stores will not be eligible as solution partners as they will remain in the hands of cubecartforums.org as they are right now. An anual membership cost could be a part of the process to filter out those that are serious. We would expect that company info/portfolio should be enough to ensure we get quality partners.

    Sorry, I don't understand what you mean by "they will remain in the hands of cubecartforums.org". I am a member of cubecartforums.org and my mod store is not in the hands of cubecartforums.org. I am not their agent nor do they own, manage or control my mod store in any way.

    I have been providing custom cubecart based solutions to customers since 2004 and although I am not an "end-to-end" solutions provider my custom programmed solutions enhance thousands of stores. Some via mods, and some via custom work that I've done.

    while I agree that you shouldn't include every tom, dick or harry as a solutions partner, I strongly disagree that you should dissmiss mod/skin store owner without review. that just wouldn't be fair.

    One of the very things that made cubecart such a popular and powerful ecommerce solution is it's simplicity and ease of modification and customization. Al, I think you owe a debt of gratitude to all of us modders who made the great success of cubecart possible.

  15. Hey wondered if anyone could help.

    In the pagination on the categories, the standard output is "Pages 2 [1] 2 3".

    Which file do I open to remove the "[" and the "]"

    Any help is much appreciated.

    Regards

    Alan

    you'll need to edit functions.inc.php. find this line

    $navigation	.= "&nbsp;<strong>[".$pageNo."]</strong>&nbsp;";

  16. I am new to Cube Cart. Apparently, I cannot use the <?php ?> tags I would normally use. How would I add my own php script to a Cube Cart page?

    Thanks.

    Hi,

    Cubecart templates do not support PHP code, they only display the results of PHP scripts. To add functionality, you must edit the php script related to the template you need to modify. For example, edit viewProd.inc.php script to add functionality to viewProd.tpl file.

    Thanks

    /Goober

  17. I'm shopping for cart software for my company's website, and I was wondering if someone could answer this for me...

    My company creates a product, and distributes it to retail stores at varying prices... one shop may have negotiated a $8 per unit price, but another company may pay $10 per unit for the same item.

    I need cart software which will allow me to create user accounts, and have pricing or items specific to that customer... so that my customers can place their wholesale orders online. Is this possible with cubecart?

    This functionality is available via 3rdparty mods. You can find these and other mods on www.cubecartforums.org

    Thanks

    /Alex

×
×
  • Create New...