Page 8 of 14 FirstFirst ... 678910 ... LastLast
Results 71 to 80 of 134
  1. #71
    Join Date
    Oct 2014
    Location
    North Carolina
    Posts
    8
    Plugin Contributions
    1

    Default Re: AJAX Add to Cart [Support Thread]

    Quote Originally Posted by noahmarket
    The only issue i have now is when i shrink it like im viewing from phone i cannot get into the shopping cart so i still got more work to do

    Thanks !!
    Quote Originally Posted by balihr
    Yeah, I just checked and I can see what you mean, but that's because of your styling and absolute positioning. If you add additional lines for cart popup placeholder in the responsive breakpoints, I'm sure you'll have it visible.
    Quote Originally Posted by noahmarket
    Yea tried that but still no luck getting it to popup

    put this in responsive css but it affects the regular template also
    Code:
    #carttopcontainer {
    	float:none;width:276px;border:3px solid #ccoo33;margin:0;padding:10;padding-bottom:20px;}
    Quote Originally Posted by balihr
    Are you sure you put it in the correct place? It should be after a device width breakpoint, something like:
    Code:
    @media (max-width: 479px) {
    That way it's an override for mobile devices and should work.

    balihr and I Were talking about responsive issues with a template and shopping cart

  2. #72
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: AJAX Add to Cart [Support Thread]

    Okay.. So I've got this installed.. I added an Awesome Font cart glyph in front of the header cart totals this mods generates. I even got the header totals to appear in place of the normal header cart totals so that if I turn this module off, the default header totals/icons appear..

    Here's what I am having issues with...

    The formatting of the header totals.. Specifically I cannot seem to figure out what I need to do to get the totals to appear WHERE they should in the header.. Currently, they sit to the left of my header links.. I am using the Westminster-New template.

    Here's all the changes I made:
    includes/templates/MY_TEMPLATE/common/tpl_header.php
    Code:
        <li>
    <!-- BOF ZX AJAX Add to Cart -->
    <?php
    // BOF AJAX Cart 
        if (ZX_AJAX_CART_STATUS == 'true') {
            echo '<div id="carttopcontainer"></div>';
            require(DIR_WS_MODULES. 'sideboxes/'.$template_dir. '/zx_ajax_shopping_cart.php');
        } else {  
        echo '<a href="'. zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') .'"><i class="fa fa-shopping-cart"></i> '. $_SESSION['cart']->count_contents() .' - '. $currencies->format($_SESSION['cart']->show_total()) .'</a>&nbsp;|&nbsp;';
       } 
    // EOF AJAX Cart
    ?>
    <!-- EOF ZX AJAX Add to Cart -->
    </li>
    includes/templates/YOUR_TEMPLATE/sideboxes/tpl_zx_ajax_shopping_cart.php
    Code:
        $content .= '<a href="'. zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') .'" onClick="ajax_cart(); return false"><i class="fa fa-shopping-cart"></i> '. $_SESSION['cart']->count_contents() .' - '. $currencies->format($_SESSION['cart']->show_total()) .'</a></div>&nbsp;|&nbsp;';
    add_prod.php
    Code:
        $cart_top = '<a href="'. zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') .'" onClick="ajax_cart(); return false"><i class="fa fa-shopping-cart"></i> '. $_SESSION['cart']->count_contents() .' - '. $currencies->format($_SESSION['cart']->show_total()) .'</a>';
    add_to_cart.php
    Code:
        $content .= '<a href="'. zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') .'" onClick="ajax_cart(); return false"><i class="fa fa-shopping-cart"></i> '. $_SESSION['cart']->count_contents() .' - '. $currencies->format($_SESSION['cart']->show_total()) .'</a>';
    Finally link to dev site: http://clientscrappin(dot)divawebdzg...r-p-13207.html

    What do I need to modify to get the cart totals to site between the "Login" and "Checkout" links??
    Last edited by DivaVocals; 19 Jan 2015 at 11:56 AM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #73
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Re: AJAX Add to Cart [Support Thread]

    It has position:absolute so you need to edit stylesheet_ajax_cart.css at line 4. Change left:0 to right:10%
    If that's what you're asking :)

  4. #74
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: AJAX Add to Cart [Support Thread]

    Quote Originally Posted by balihr View Post
    It has position:absolute so you need to edit stylesheet_ajax_cart.css at line 4. Change left:0 to right:10%
    If that's what you're asking :)
    That moves over the popup.. but I was actually asking about the links in the top header bar.. If you look at the site, you'll see that the cart totals appear to the left of the "Login" link.. I want them between the pipes "|"
    Last edited by DivaVocals; 19 Jan 2015 at 12:40 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #75
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Re: AJAX Add to Cart [Support Thread]

    Hehe, and where is it that it should appear? :) All the way to the left, basically above the popup? I'm confused, not sure what exactly you're trying to do. Give this blind man a hint with some photoshop...

  6. #76
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: AJAX Add to Cart [Support Thread]

    Quote Originally Posted by balihr View Post
    Hehe, and where is it that it should appear? :) All the way to the left, basically above the popup? I'm confused, not sure what exactly you're trying to do. Give this blind man a hint with some photoshop...
    If you visit the dev site: http://clientscrappin(dot)divawebdzg...r-p-13207.html

    Look in the upper right hand side of the site..

    You will see the cart totals (which come from this mod), the "Login" link, and the "Checkout link..

    See the pipes "|" character between the "Login" link, and the "Checkout links?? The cart totals should go THERE..

    I attached a screenprint.. but if you go to the dev site you can see this there too..

    Name:  for-christs-sakes.PNG
Views: 212
Size:  11.2 KB
    Last edited by DivaVocals; 19 Jan 2015 at 12:50 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #77
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Re: AJAX Add to Cart [Support Thread]

    Ah! Why didn't you say so in the first place?

    Here's an idea, although I haven't tested. I would go for the templates tpl_header.php and insert a new <li> on line 70 (don't forget to close and re-open the if($_SESSION['customer_id']). Make that <li id=" carttopcontainer"> instead of adding that div with the same id. I think it should do the trick...

  8. #78
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: AJAX Add to Cart [Support Thread]

    Quote Originally Posted by balihr View Post
    Ah! Why didn't you say so in the first place?
    Welll not for nothing I kinda did..

    Quote Originally Posted by balihr View Post
    Here's an idea, although I haven't tested. I would go for the templates tpl_header.php and insert a new <li> on line 70 (don't forget to close and re-open the if($_SESSION['customer_id']). Make that <li id=" carttopcontainer"> instead of adding that div with the same id. I think it should do the trick...
    Okay.. well this didn't change the position of the cart totals.. they still sit to the left of the rest of the header links.. BUT this was a better way to code this conditional statement.. Here's what my templates tpl_header.php code looks like now:

    Code:
    <?php //if ($_SESSION['cart']->count_contents() != 0) { ?>
    <!-- BOF ZX AJAX Add to Cart -->
    <?php
    // BOF AJAX Cart 
        if (ZX_AJAX_CART_STATUS == 'true') {
            echo '<li id=" carttopcontainer">';
            require(DIR_WS_MODULES. 'sideboxes/'.$template_dir. '/zx_ajax_shopping_cart.php');
        } else {  
        echo '<li>';
        echo '<a href="'. zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL') .'"><i class="fa fa-shopping-cart"></i> '. $_SESSION['cart']->count_contents() .' - '. $currencies->format($_SESSION['cart']->show_total()) .'</a>&nbsp;|&nbsp;';
       } 
    // EOF AJAX Cart
    ?>
    <!-- EOF ZX AJAX Add to Cart -->
    </li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php //}?>
    Please note that the first line:
    Code:
    <?php //if ($_SESSION['cart']->count_contents() != 0) { ?>
    and last line:
    Code:
    <?php //}?>
    includes double slashes (//). This means the cart totals will show regardless as to whether the cart is empty or not.

    I'm pretty sure that this is a CSS change at this point.. I cannot figure out the right CSS changes needed to get this part of the menu to sit where I need it to..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #79
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: AJAX Add to Cart [Support Thread]

    Quote Originally Posted by balihr View Post
    Ah! Why didn't you say so in the first place?

    Here's an idea, although I haven't tested. I would go for the templates tpl_header.php and insert a new <li> on line 70 (don't forget to close and re-open the if($_SESSION['customer_id']). Make that <li id=" carttopcontainer"> instead of adding that div with the same id. I think it should do the trick...
    FYI.. I rolled back my includes/templates/MY_TEMPLATE/common/tpl_header.php mods to what I originally posted..
    Code:
        <li>
    <!-- BOF ZX AJAX Add to Cart -->
    <?php
    // BOF AJAX Cart 
        if (ZX_AJAX_CART_STATUS == 'true') {
            echo '<div id="carttopcontainer"></div>';
            require(DIR_WS_MODULES. 'sideboxes/'.$template_dir. '/zx_ajax_shopping_cart.php');
        } else {  
        echo '<a href="'. zen_href_link(FILENAME_SHOPPING_CART, '',  'NONSSL') .'"><i class="fa fa-shopping-cart"></i> '.  $_SESSION['cart']->count_contents() .' - '.  $currencies->format($_SESSION['cart']->show_total())  .'</a>&nbsp;|&nbsp;';
       } 
    // EOF AJAX Cart
    ?>
    <!-- EOF ZX AJAX Add to Cart -->
    </li>
    Turns out that the ID "carttopcontainer" needs to be in it's own div container for the menu popup to work correctly..

    I am noticing that there are some anomalies with how this menu behaves when it comes to out of stock products.. Discovered this when testing the mobile views since I turn off the menu on mobile devices.. I need to do more testing and will report back my findings in full.. It appears to not be firing off some of the messages that I would see in the default cart behavior..
    Last edited by DivaVocals; 20 Jan 2015 at 02:45 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #80

    Default Re: AJAX Add to Cart [Support Thread]

    Hi Diva,
    I'm using this mod on a test site with the Westminster new template, and it seems to be working fine in normal, mobile and tablet view, if you wanted to see the file changes I made I can post them?
    What problems were you having with it though, as I'm worried there may be other problems I have overlooked and I don't want to put it on my live site until I'm sure.

    Thanks

 

 
Page 8 of 14 FirstFirst ... 678910 ... LastLast

Similar Threads

  1. v150 Contact Us - Add Subject support thread
    By gjh42 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 9 Jan 2019, 06:04 AM
  2. Add Shipping Telephone Support Thread
    By JTheed in forum Addon Admin Tools
    Replies: 31
    Last Post: 4 Sep 2018, 11:14 AM
  3. v139h Numinix Pinterest Add On Support Thread
    By swguy in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 14 Jan 2018, 05:12 AM
  4. AJAX IMAGE Swapper support thread
    By jaycode in forum All Other Contributions/Addons
    Replies: 785
    Last Post: 13 Jan 2016, 11:48 PM
  5. AJAX BANNER Swapper support thread
    By jaycode in forum All Other Contributions/Addons
    Replies: 19
    Last Post: 11 Oct 2012, 05:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg