customize cart

maxmax Member
in Help edited September 2012
is it possible to edit the html within the ^^cart^^ tag? (or any of the template tags?)

i understand that things can be changed in css, but it would be nice to change some of the html elements.
i would want to change things like the paypal button image or the text that reads "-OR-" in between the buttons

thanks
Comments
  • fc_adamfc_adam FoxyCart Team
    @max,

    Are you utilising version 1.0? One of the features of 1.0 is Twig templating that will let you customise the actual HTML included within those placeholders.

    More information on that here: http://wiki.foxycart.com/static/redirect/templates#getting_even_more_advanced_with_twig
  • maxmax Member
    Cool! this is very helpful.
    however im having an issue with implementing the twig templates. i began with the "FoxyCart Standard with Twig" page structure, and replaced:

    {% use 'cart.inc.twig' %} {{ block('cart') }}
    with
    the contents of "cart.inc.twig"

    after caching and updating that page, the cart loads fine at: https://myStore.foxycart.com/cart.php, but the "update cart" and "checkout" buttons direct me to "http://myTestServer.com/store//cart.php"; which is a 404 error!

    same issue was happening with my attempt to use the full twig code on the checkout page

    any insight is very appreciated. thanks
  • maxmax Member
    oops, ment to direct that thanks, and question to @fc_adam
  • fc_adamfc_adam FoxyCart Team
    @max - could you whisper me your websites URL?
  • fc_adamfc_adam FoxyCart Team
    @max {in response to whisper}

    Thanks for the information - we'll dig in from our side and see what pops up.
  • lukeluke FoxyCart Team
    Hey Max, I've been trying to reproduce this, but so far I haven't had any luck. The cart templates you linked to now both seem to be using the included file, not the contents of the file. I tried testing with the contents of the file on our test environment and it seemed to be working correctly. Can you walk me through the steps to reproduce this?
  • lukeluke FoxyCart Team
    Looks like we do have an issue with the automagic cache system trying to cache the contents of cart.inc.twig because it interprets "checkout.php" as a local link and injects the store's domain in there. These are the changes we'll be testing and rolling out for this fix: http://pastie.org/5020973

    Please let us know if you have any questions.
  • maxmax Member
    i also wanted to mention the issue happens when using the "remove item" links in the cart
    and it happens with the other pages. checkout, receipt etc..

    thanks
    m
Sign In or Register to comment.