Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Joomla Virtuemart Template - DarkMart (SKU# FLEX-00011)

TOPIC: Notice box, order confirmation and order info

Notice box, order confirmation and order info 10 years 6 months ago #6393

Hi,
yet again I need some help with the DarkMart template. Because the problems are small (I hope), I decided to put them in one topic:

1. After updating both DarkMart and Virtuemart to their latest versions, the "popup" notice box (that appears after a product is added to cart) does not show the product name which was added to the cart. It just says: “Product added to cart”. How can I fix this?

2. Also the same “popup” notice box looks a bit weird, when a product is out of stock. I wasn’t able to find or generate the same box in the DarkMart demo version, so I really don’t know how it should look in the first place.

Attachment weirdpopup.JPG not found




3. After successful ordering, you end up on a confirmation page that says thank you for ordering and shows the payment method, order number and order sum. Is it also possible to add the shipment method there? On top of the payment method would be excellent.

4. I would also like to delete a button on “Order information” page. The top-right one that says “Orders list”, because it leads to a log-on page where you need to enter the order number and password and after clicking “view order” nothing happens. I don’t know if I’m the only one whom it doesn’t work, but right now I can’t see the use of the button anyway. The link in the order confirmation e-mail works fine and you end up at the same page. So, which file I have to modify to delete this button?

Attachment deletethis.JPG not found




My half-completed shop is at www.sysimust.com/index.php

Maris
The topic has been locked.

Notice box, order confirmation and order info 10 years 6 months ago #6420

Hello!

I think I managed to solve issue nr. 4: I opened details.php at
components/com_virtuemart/views/orders/tmpl

and deleted line 62, which contained the following:

<a href="<?php echo $this->order_list_link ?>"><?php echo JText::_('COM_VIRTUEMART_ORDERS_VIEW_DEFAULT_TITLE'); ?></a>

Now the button is gone. Can you please verify that this is the right way to do this? And can you please help me with the other issues (1-3)?

All the best,
Maris
The topic has been locked.

Notice box, order confirmation and order info 10 years 6 months ago #6446

Hi,

For the 1-2 issues. I really don't understand what you are asking. Because those don't happen in our DEMO with VM2.0.22c
I need to see your website to understand what you are saying

About the issue (3) it is a custom modification and can't help you about it. Our support doesn't cover custom changes. You would need to edit these PHP files:
- /components/com_virtuemart/views/cart/view.html.php
- /components/com_virtuemart/views/cart/tmpl/order_done.php

About the 4th issue, this is the right way of doing the customization. no problem with that. But you should better use the template overriding for that kind of modification. Because if you don't use template overriding, then when you update your Virtuemart (through Virtuemart backend), your changes will be refreshed back to stock. To preserve your coding modification, you should always use template overriding.

For instance, to use template overriding for details.php
copy this file: /components/com_virtuemart/views/orders/tmpl/defails.php

and paste it to here:
/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/details.php

so that details.php will be untouched when you update your Virtuemart through Virtuemart Backend.

Read this page for more info about template overriding:
docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core

Regards.
Last Edit: 10 years 6 months ago by Support.
The topic has been locked.

Notice box, order confirmation and order info 10 years 6 months ago #6477

Hi,

1. I have no idea where this line, that shows the product name, went or what I did to lose it. I just updated Virtuemart to 2.0.22c and the DarkMart template to 2.2. Oh, and then I restored the Virtuemart’s system to its defaults settings. Maybe I overlooked something, when I manually restored the Virtuemarts configuration back to DarkMart default settings…

Attachment Addtocart.JPG not found



2. I think I managed to find out what caused this weird looking notice box. It’s because I changed the Virtuemart “Action when a product is out of stock” (Virtuemart-> Configuration-> Shopfront) from “Display Notify Me instead of Add to cart button” to “Do not display product”. I would really prefer to use the “Do not display product” option in my shop, but can you make the notice box a little better looking?

Attachment Outofstock.JPG not found



3. I understand. Thanks for pointing out the .php files that need to be modified to get the result.

4. Solved

My half-completed shop is at www.sysimust.com/index.php and should be accessible.

All the best,
Maris
Last Edit: 10 years 6 months ago by Maris M.
The topic has been locked.

Notice box, order confirmation and order info 10 years 6 months ago #6483

Hi,

I have unintentionally fixed the problem number 1. After updating Virtuemart to 2.0.22c, I noticed, that the “Order information” page language turned partially back to English. I was not able to turn it back to Estonian. Nor language override or manually changing the language files helped. Then I downloaded the Estonian language pack from Virtuemart page and after the re-installation the “Order information” page turned back to Estonian, language override started to work again. And the most suprising: the “popup” notice box (that appears after a product is added to cart) looked like this:

Attachment noticeboxnow.JPG not found



I don’t know what really caused this anomaly, but I guess I’m happy with the result.


Can you do something with problem number 2? I hope it does not go to under custom modification…

All the best,
Maris
The topic has been locked.

Notice box, order confirmation and order info 10 years 6 months ago #6500

Hi,

If you say something "how to make it little better". Then it is obvious this is a custom modification and unfortunately it is beyond our free support. I can't provide you support about it, because it would go to infinite.

But i can give you the tip to let you do this customization by yourself.
The PHP file you need to make edit is this:

/components/com_virtuemart/views/cart/tmpl/padded.php

I would suggest you to copy-paste this PHP file to here:
/templates/flexible_darkmart/html/com_virtuemart/cart/padded.php

and use the template overwriting. Therefore, your change won't get retrieved back to original case once you update your Virtuemart.

Read here for more info about Template overriding:
docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core

Regards.
The topic has been locked.

Notice box, order confirmation and order info 10 years 6 months ago #6521

Hello!

I thought that Flexible team designed all the notice boxes to look the same and I have found a kind of “design-bug”. But if you tell me, that this notice box was intentionally made to look like this, then of course changing it is a custom modification.

Thanks for the tip! I will look into it.

I guess we are done here and the topic can be marked as solved.

All the best,
Maris
The topic has been locked.

Notice box, order confirmation and order info 10 years 6 months ago #6528

Okay. In case you stuck somewhere, you may create a new topic and ask for our guidance.

Case solved. Topic is closed for cleaning.

Regards,
Support & Development
The topic has been locked.
Time to create page: 0.081 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo