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
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
Share this post:
Responses (7)
-
Accepted Answer
You can find that TPL file from here:
/catalog/view/theme/second/template/error/not_found.tpl
Regards -
Accepted Answer
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. -
Accepted Answer
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 -
Accepted Answer
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 -
Accepted Answer
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' -
Accepted Answer
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. -
Accepted Answer
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
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »