Adding info. to the product added to your cart lightbox

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue May 28, 2013 12:14 pm
Reply with quote
Report this post
Hi. I use the Bikestore template for J2.5 with Virtuemart.
When I add a product to my shopping cart, a lovely pop up message appears in a lightbox saying "The product was added to your cart." etc.

On my site I am using the module Free Shipping Info Module by IdealConception
http://www.modules.idealconception.com/

I would like to display this module in the lightbox that pops up when I add a product to my shopping cart.
Please can you advise the best way to achieve this?

Thank you
User avatar
Gold Boarder

teitbite
Wed May 29, 2013 6:25 am
Reply with quote
Report this post
Hi

This is a customisation, so I cannot help much, but I think You should be able to add a new module position inside this popup and display this shipping inforamtions there.
User avatar
Moderator

GK User
Wed May 29, 2013 10:08 am
Reply with quote
Report this post
OK - how would I set about making that happen? :-)
User avatar
Gold Boarder

teitbite
Thu May 30, 2013 4:45 pm
Reply with quote
Report this post
Hi

This part of code is loading module whenever You use it:

Code: Select all
      <?php
         $modules =& JModuleHelper::getModules('module_name');
         foreach ($modules as $module) {
            echo JModuleHelper::renderModule($module);
         }
      ?>


You need to add this code to /html/com_virtuemart/cart/default.php at least I think so :(
User avatar
Moderator

GK User
Wed Jun 05, 2013 11:22 am
Reply with quote
Report this post
Okay, great. So if I add the code you've given me to the file, it should display the module - great!

But what part of the code do I need to customise to make it show my required module?

Just module_name?

If so, do I replace this with the title of the module?

Thanks Teitbite
User avatar
Gold Boarder

teitbite
Wed Jun 05, 2013 11:23 pm
Reply with quote
Report this post
Hi

Sorry. This was confusing. By "module_name" I meant a module position name. You can come up with any name You want in code and than change the module position in module setting to it.
User avatar
Moderator

GK User
Fri Jun 28, 2013 11:28 am
Reply with quote
Report this post
Hmmm... Have had no luck trying this.

Am sending you PM now... Thx!
User avatar
Gold Boarder

teitbite
Sat Jun 29, 2013 9:37 pm
Reply with quote
Report this post
Hi

To be honest I do not know. I think You should add some kind of script which will count this values. I may be wrong that the code loading module will work in this place. You better ask VM developers about that. I can point You to the place where this code needs to be added in /html/com_virtuemart/cart/default.php but they need to help with a way to enable showing module inside their component.
User avatar
Moderator


cron