Author Topic: Add to cart functionality is not working properly in VM 1.1.3  (Read 21776 times)

EquiProVM

  • Jr. Member
  • **
  • Posts: 53
    • Perfect World Luggage
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #15 on: April 23, 2009, 00:53:42 am »
The popup window seems to be working OK now (except that the "add to cart" is not reflected in the minicart until the page is refreshed), but I went to the theme.css file anyway to take a look.  I didn't see any z-index there, and the only .vmCartModule I found was this:

.vmCartModuleList  {
  cursor : pointer;
  font-size        : 11px;
  color            : #000000;
  text-decoration  : none;
  font-weight      : bold;
}
.vmCartModuleList:hover {
  font-size        : 11px;
  color            : #333333;
  text-decoration  : none;
  font-weight      : bold;

I'm probably looking in the wrong file?  This is from the path that you specified above.

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #16 on: April 23, 2009, 01:04:12 am »
correct file just no def for it, just add

.vmCartModule {
      z-index: 5;
}

I think that maybe the problem, but can't be sure.
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #17 on: April 24, 2009, 04:31:39 am »
Nope that wasn't the problem.

After debugging the code, it suddenly clicked! You didn't have an index2.php file in the root of your joomla structure.

Index2 is used to display popups without the joomla template being displayed, just the content of the current component. The AJAX updater uses this to generate the html to refresh the cart module. It wasn't there so the info wasn't updated.

I have put the index2.php file in the root of your site and now everything works.
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

EquiProVM

  • Jr. Member
  • **
  • Posts: 53
    • Perfect World Luggage
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #18 on: April 24, 2009, 04:39:31 am »
That is SO great.  Could you post the content of the index2.php file and tell people exactly where to put it?  I know that I am not the only person who is having this problem.

I just think that it is amazing that you developers can keep all of this straight and notice these errors.  Thanks SO much...I know that there are a bunch of us our there who are going to be thrilled with this fix.

Happy!  Happy!  Joy!  Joy!

EquiProVM

  • Jr. Member
  • **
  • Posts: 53
    • Perfect World Luggage
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #19 on: April 24, 2009, 04:43:14 am »
I just took a quick look at that file. Just a small snippet of code in one extra file, but obviously something that I was missing for some reason.

Tomorrow I'll put up a post showing exactly what you put in and where and I'll see if I can get that fix to the others that I have seen who have had the same problem.  Wow.  It's amazing that something that small could cause such a problem.

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #20 on: April 24, 2009, 05:01:26 am »
index2.php should be installed by Joomla by default. It is in the base package, I can only surmise that it was accidentally deleted.

It is also included in the ecommerce edition of VM.

I suppose some could think it is an edited file that can be deleted, obviously not!



Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.

EquiProVM

  • Jr. Member
  • **
  • Posts: 53
    • Perfect World Luggage
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #21 on: April 24, 2009, 05:47:08 am »
Yea, and I think that that someone was ME!  What else could have happened.

Well, whatever happened, since there are others who are having the same problem, and easy solution is for them to check to see if that file is there.  If it ISN'T, then it is a quick fix for the problem!

xpert

  • Beginner
  • *
  • Posts: 1
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #22 on: May 13, 2009, 12:14:55 pm »
fixed it


function handleAddToCart( formId, parameters ) {
   formCartAdd = document.getElementById( formId );
   
   var callback = function(responseText) {
      updateMiniCarts();


      // close an existing mooPrompt box first, before attempting to create a new one (thanks wellsie!)
      if (document.boxB) {
         document.boxB.close();
         clearTimeout( 'document.boxB.close()', 2000 );
      }
      document.boxB = new MooPrompt(notice_lbl, responseText, {
            buttons: 2,
            width:400,
            height:150,
            overlay: false,
            button1: ok_lbl,
            button2: cart_title,
            onButton2:    handleGoToCart
         });
         
      setTimeout( 'document.boxB.close()', 3000 );
   }

ennsol

  • Beginner
  • *
  • Posts: 3
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #23 on: June 16, 2009, 23:28:35 pm »
With that fix it is OK in IE7 but in FF with Firebug I get:

can't convert "document.boxB.close()" to an integer
[Break on this error] clearTimeout( 'document.boxB.close()', 2000 );

Regards
Mark

kidhunt

  • Beginner
  • *
  • Posts: 1
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #24 on: July 12, 2009, 12:17:08 pm »
I get a problem with my virtuemart, i use version 1.1.3. When i click the addtocart button at first, it appear an ajax message box, but after that, when i click another addtocart button or the same that i have clicked before, the pop up does not show. How can I fix this problem? Please help me!

P.S: i also have the index2.php in my joomla :D

revive

  • Jr. Member
  • **
  • Posts: 96
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #25 on: July 22, 2009, 18:24:08 pm »
macalif,
I've just run into an issue with the minicart.. would you be willing to  give me your thoughts on it??

I'm using VM 1.1.3 and Joomla 1.5.12 (both are the most current version).. when a user adds an item to the cart, the minicart loads the complete homepage in it !! If I refresh the page, then the minicart looks normal.. any ideas?

felixp

  • Jr. Member
  • **
  • Posts: 192
    • FMCA
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #26 on: September 30, 2009, 20:15:58 pm »
Where is the URL for the 'Cart' button in the popup set?
Joomla - 1.5.6
VirtueMart - 1.1.3

revive

  • Jr. Member
  • **
  • Posts: 96
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #27 on: October 01, 2009, 05:59:56 am »
@felixp

You're better off checking into other ecommerce solutions at this point.. VM has been fairly unsupported from the dev team - even though we have created many custom stores with it, VM spec modules, etc.. we've found the lack of community and developer support, as well as the known, unfixed bigs.. simply to much of a burden on clients.. Sad to say, because we really dig VM.. but, until they refactor it into v2.0, it's a dying dog. And, you can see from the date of my last post here how responsive team members are to reply.

Ironically, @macalif, is apart of a new ecommerce spin off within Joomlacode... so, looks like he agrees that there is another route besides VM for ecommerce in Joomla..

Check out Foxycart, OpenCart or others...

Best of luck to you..

zvenson

  • Beginner
  • *
  • Posts: 28
    • acousticsdb - room acoustics matters
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #28 on: November 04, 2009, 08:53:44 am »
Quote
Now the only problem left for me is that any "add to cart" on the same page is NOT reflected in the cart until the page is refreshed.  I might be able to put that issue to bed as soon as I can get that fixed!

Thanks!

I have the same problem - but the index2.php is there in my shop. an easy solution for this coul be that the add to cart button directs automatically to the shopping cart and don't use this popup which i find not ideal by the way. Has anyone done something like this yet?

cheers and thanks!
http://www.acousticsdb.com - room acoustics matters
http://www.webdesignhamburg.net - webdesign aus Hamburg

zvenson

  • Beginner
  • *
  • Posts: 28
    • acousticsdb - room acoustics matters
Re: Add to cart functionality is not working properly in VM 1.1.3
« Reply #29 on: November 04, 2009, 14:38:54 pm »
Code: [Select]
The only solution we have found to the bugs, issues and lack of mods/developers support here in the forum.. is to switch from Virtuemart to ANY OTHER ecommerce platform that will work.
oh boy :).

i think my problem can be solved somehow without switching to another ecommerce system - but it is true the support in this forum is quite bad - as none of my questions have been answered so far - but i'm trying to figure this one out somehow...
but vm is working good for me so far.

http://www.acousticsdb.com - room acoustics matters
http://www.webdesignhamburg.net - webdesign aus Hamburg