Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

Reputation Activity

  1. Like
    hughesca reacted to Guest in Simple Checkout - for 2.3.1 (official support thread)   
    Country selection is not set for a default country. Customer must select from the drop down. If you want a default, you'll have to hard code the country id of your choice (number from the database 223 for the United States), or use STORE_COUNTRY. Instructions are a couple pages back. Default country is not a standard OSC feature, and so it isn't a part of Simple Checkout either.
    When the country is selected however, it should be changing from red to green, and auto-loading a state selector using the zones that match the country (or an input field if no zones are found). What I don't get is how you can (or have to) select a different country with the mouse, but cannot selected the US.
    Are you doing the sql query with the postcode validator install? I've got Simple Checkout, my USPS mod, my postcode validator add-on, as well as the USPS block methods by product on my test site. http://fulluvscents.com/catalog/ As long as you do the query and follow the instructions to the tee, it should work fine, BUT, who's to say I didn't miss a step in the instructions? You've got my email address. If you want to zip and email me a copy of your checkout.php code WITH the USPS and zip validator parts added, I'll compare it to my own and see if one of us is missing something.
    To remove scrollbar - Find the class and the assignment of the class "cartscr" and delete them.
    To remove images:
    Find and delete the following two lines (these are in separate parts of the script, not one after the other):

    <div class="left" style="width:<?php echo SMALL_IMAGE_WIDTH; ?>px;"> </div>

    <div class="left" style="width:' . SMALL_IMAGE_WIDTH . 'px;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div>
    There is no refresh button because it automatically refreshes. Not only do the totals refresh, but the shipping options change to reflect the new cart weight, the shopping cart box in your columns changes to reflect the new cart/totals, and the shopping cart link at the top of the page refreshes to reflect the new number of items in the cart.
  2. Like
    hughesca got a reaction from CustomGaming in Product Options with Images   
    I couldn't tell ya without looking at the files, but it's likely you have an extra ?> in one of the files you modified. I'd check back over the files you made the modifications, she'll be lurking in there somewhere. By it's placement I'd say it's likely in your product_info.php. ;)
  3. Like
    hughesca reacted to RusNN in AJAX Attribute Manager support   
    Chris done great work. Congrats!
    You also make AJAX AM compatible to osC v2.3 and later by doing standart installation except two steps in step 2:
    1. In admin\categories.php EXCEPT adding
    <!-- AJAX Attribute Manager --> <?php require_once( 'attributeManager/includes/attributeManagerHeader.inc.php' )?> <!-- AJAX Attribute Manager end --> add
    require_once('attributeManager/includes/attributeManagerHeader.inc.php'); AFTER
    require(DIR_WS_INCLUDES . 'template_top.php'); or MOVE
    require_once('attributeManager/includes/attributeManagerHeader.inc.php'); exactly UNDER
    require(DIR_WS_INCLUDES . 'template_top.php'); in case of upgrading from v2.2.
    2. Completely ignore instruction of modifying BODY tag to
    onload="goOnLoad();" .
    And the last change:
    3. In admin\attributeManager\includes\attributeManagerHeader.inc.php REPLACE
    function goOnLoad() { <?php if('new_product' == $action || 'update_product' == $action) echo 'attributeManagerInit();'; ?> SetFocus(); } with this
    $(document).ready(function(){ <?php if('new_product' == $action || 'update_product' == $action) echo 'attributeManagerInit();'; ?> SetFocus(); });
    So, we just make JQuery to work for us. It runs AJAX AM after page were loaded. We changed only 1 core file admin\categories.php as in original instruction.
    Tested, works OK.
    Hi, Sara!
    I'm sorry, but I completely have no time to made this contrib actually multilingual.
    To all
    Hope after New Year I'll find time to make AJAX AM to other version, just because it has some shuffle in versions after 2.8.7 (full QT Pro support) and some bugs are found in them.
  4. Like
    hughesca got a reaction from ErikMM in AJAX Attribute Manager support   
    I'm happy to say AJAX Attribute Manager works great on the new OSC v2.3.1 with just a few minor adjustments!
    Here's what you need to do:
    Step 1. MAKE A BACKUP!!!!!11!!one1
    Step 2. Don't talk about figh....oh wait. :D
    Really though, make a backup...to your local drive...it will save you some day!
    Step 2. Upload the full attributeManager folder (found under catalogs in the AM download) to your admin folder.
    Step 3. Using your favorite editor, open up admin/categories.php. If you're using a halfway decent editor (Notepad++ WOOOOO!) you'll want to wander down to about line 244 or so. Here you will see this little fella:

    tep_db_perform(TABLE_PRODUCTS, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "'"); }
    Modify it like so:

    tep_db_perform(TABLE_PRODUCTS, $sql_data_array, 'update', "products_id = '" . (int)$products_id . "'"); } /** AJAX Attribute Manager **/ require_once('attributeManager/includes/attributeManagerUpdateAtomic.inc.php'); /** AJAX Attribute Manager end **/
    Right now you're probably nudging your buddy going, "This smartass is just reading off the directions that come with the package!". Ok then Mr. Smartypants...find me <script language="javascript" src="includes/general.js"></script> in admin/categories.php! HA! You can't, because it's no longer there...no, putting it in there doesn't count. Alright, back to topic.
    As I mentioned above the next part of the instructions call for adding a snippet of code after <script language="javascript" src="includes/general.js"></script> and...well, as I said, it's no longer there. Don't fret though, it's still around...just in a different file.
    Step 4. So let's take that handy editor and open up admin/includes/template_top.php. Low and behold, there's our little friend (line 38)!

    <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script type="text/javascript" src="includes/general.js"></script> <!---Hello there!
    So now we continue following instructions and make it look like so:

    <script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script type="text/javascript" src="includes/general.js"></script> <!-- AJAX Attribute Manager --> <?php require_once( 'attributeManager/includes/attributeManagerHeader.inc.php' )?> <!-- AJAX Attribute Manager end -->
    Now Harold and his buddies weren't trying to just make your life hell by moving it on ya. To my understanding, they have centralized page headers into a single file, so we no longer have to hunt through 30 different files to do so. Simple. Quick. Easy. Tidy.
    Now don't go closing admin/includes/template_top.php just yet, we're still going to need it.
    Step 5. Here they want you snooping around in admin/categories.php again for this little snippet: onload="SetFocus();". Don't waste your time...just like before. It's not there. But where could it be? Go ahead...guess where it is.
    WRONG (Unless you guessed it doesn't exist AT ALL.) :P
    That's right...it's nowhere to be found. So stop looking for it already! We're actually going to completely ignore onload="SetFocus();", it's nothing but a tease. Instead let's goto line 44 in our admin/includes/template_top.php we have open still.
    I know...what a disappointment. Just a lonely <body> tag...all by itself. Did I mention it was lonely?
    Let's get him some company! Let's take our <body>, dash on a bit of: onload="goOnLoad();" as per our instructions and viola! We end up with this:

    <body onload="goOnLoad();">
    Complicated stuff, isn't it? :lol: It's now safe to save and close admin/includes/template_top.php...we're done with it.
    Step 6. To finish up, we need to get back to admin/categories.php. Scroll waaaaaaaaaay on down to line 553 where you should find this:

    <tr bgcolor="#ebebff"> <td class="main"><?php echo TEXT_PRODUCTS_PRICE_GROSS; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_gross', $pInfo->products_price, 'OnKeyUp="updateNet()"'); ?></td> </tr>
    Now pay attention to the word GROSS there as the modification comes after this specific snipit. Put the code from the instructions directly under it, like so:

    <tr bgcolor="#ebebff"> <td class="main"><?php echo TEXT_PRODUCTS_PRICE_GROSS; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_gross', $pInfo->products_price, 'OnKeyUp="updateNet()"'); ?></td> </tr> <!-- AJAX Attribute Manager --> <tr> <td colspan="2"><?php require_once( 'attributeManager/includes/attributeManagerPlaceHolder.inc.php' )?></td> </tr> <!-- AJAX Attribute Manager end -->
    That it's...we're done! Now go upload your admin/categories.php and admin/includes/template_top.php to your web server and check it out!
    :o Oh noes!! :angry: It doesn't work! :'( What did you screw up this time? :-"
    Ha Ha! Gotcha. :devil: (Unless you happen to have QT Pro installed, then it probably worked, but it might not have and if it didn't I can't help you because I'm not using it!)
    Step 7. If you don't have QT Pro installed you very likely got all excited as it started to work and then ended in a tragic trainwreck of gobbly-gook ending with [TEP STOP]. I died a little inside when I saw it...did you?
    To fix it, we need to open up admin/attributeManager/classes/attributeManagerConfig.class.php (Say that 5 times fast!). As usual I'll feed ya a line number...maybe I should put them all together and go get a PowerBall ticket? Nah...I actually can't even afford a PowerBall ticket right now. But if you get one with my line numbers and win...please remember me. o:)
    Ah-hem. Sorry...where were we? Yes...admin/attributeManager/classes/attributeManagerConfig.class.php line number 65 is the one we want.

    $this->add('AM_USE_QT_PRO', true);
    Let's change that sucker to false...so it should look like so:

    $this->add('AM_USE_QT_PRO', false);
    That's it! Save admin/attributeManager/classes/attributeManagerConfig.class.php, toss it up on the web server and viola!
    There you have it. AJAX Attribute Manager in OSC v2.3.1.