Hi everyone,
i am not able to find the template to the route of www.myshop.com/index.php/cart

As my cart is empty, i the the H1 tag with the info "Your shopping cart is empty".
So i searched all the files within the CHECKOUT folder, but could find the correct tpl file.

By what i read within the Documentation, there should (?) be a cart folder based on the route, but there is none.
Am i missing something?

Greetings from this corner of the planet.
Carlos
In Themes
Sunday, May 07 2017, 02:53 PM
Share this post:
Responses (7)
  • Accepted Answer

    Tuesday, May 09 2017, 01:43 PM - #Permalink
    You can find that TPL file from here:
    /catalog/view/theme/second/template/error/not_found.tpl


    Regards
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 09 2017, 04:50 AM - #Permalink
    Remember as mentioned here under the controller section it can be a functiom.

    https://arastta.org/docs/developers/quick-start

    So i am not at my pc now but i believe it calls the success method on the checkout controller.
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 08 2017, 10:12 PM - #Permalink
    So i found another weird route template via the DEMO shop. After confirming your order you are send to
    http://demo.arastta.org/en/checkout/success

    But there is no success.tpl in my checkout folder :(
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 08 2017, 08:43 AM - #Permalink
    Looking at the code I have inherited it seems that language/EN-GB/common/cart.php file is where its grabbing the value from.

    I would expect its the associated common/cart.php controller where its defined.

    But of course I could be wrong :)
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 08 2017, 08:40 AM - #Permalink
    mm, good point.

    in controller/checkout/cart.php and controller/common/cart.php the following line exists

    $data['text_error'] = $this->language->get('text_empty');

    I am using a heavily customised version sorry so cant check for that, but it looks like it uses 'text_error' rather than 'text_empty'
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 08 2017, 08:30 AM - #Permalink
    Hi Darren,
    thanks, that's exactly what i thought, but if you look at the cart.tpl - there is no if clause with the $text_empty variable.

    Because i am modifiyng my template from ground up, i rechecked the 'default' and the 'second' template folders for the cart.tpl and the checkout.tpl but none of them indicate to inser the 'empty cart' information.
    Could it be a module?

    Greetings and thanks.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 08 2017, 08:21 AM - #Permalink
    Hi,

    its in the template/checkout folder called cart.tpl

    So for example if your using the default theme you will find it here.

    \catalog\view\theme\second\template\checkout

    If you have a custom theme it the word second may be another name and you will find it there.

    if you want to change the text "your shopping cart is empty" this is defined in a language file e.g

    So if your site is englsh its at the below path.

    \catalog\language\en-GB\checkout

    Hope this helps

    Darren
    Like
    1
    The reply is currently minimized Show
Your Reply