Combining virtuemart 1.0.14 with CB 1.2 RC3

15 years 4 months ago #79512 by fabf
Hi all,

since I had some trouble with VM 1.1.2 and CB 1.2 RC3,
I changed my setup in the following way, and so far,
it kind of works :-)

Joomla: current stable (1.5.7) in legacy mode
CB: current RC3 (1.2 RC3)
Virtuemart: 1.0.15
VM CB plugin by Ben@e-motion: last version for J! 1.0.* (plugin version: 0.1.12)

I had to add two small fixes to make it work:
  • File ./administrator/components/com_virtuemart/html/shop.browse.php

    Insert at line 47 (between the line starting with $orderby = and the line starting with
    if (empty($category_id))
  • [code:1]
    if (empty($category_id)
    and preg_match("/category_id=([0-9]*)/",
    $_SERVER,$fa_patch_re))
    $category_id = $fa_patch_re[1];
    [/code:1]
  • File ./components/com_comprofiler/plugin/user/plug_virtuemart/virtuemart.php

    Insert at line 419 (after the line starting with
    // Only show if: we are not hiding rego)
  • [code:1]
    if (strpos($_SERVER,'task=registers')>0)
    define ('_FA_VMCB_NOTABS', true);
    else {
    define ('_FA_VMCB_NOTABS', false);
    $rv .= "<table>";
    }
    [/code:1]
    Insert at line 582 (after the block starting with
    if ( $showGap ) {...} )
    [code:1]
    if (!_FA_VMCB_NOTABS) $rv .= "</table>";
    [/code:1]

Most things work as expected:
- "edit user profile" is moved over to a CB tab
- order confirmation and invoice use data from CB

One thing still doesn't:
When i check out my shopping cart, I am being asked to log in again...

index.php?option=com_user&view=login&return=someLongEncodedString

and when I do so, I find my shopping cart empty again. Repeating the procedure (shop again, check out again) would work.

Any hints or ideas about this one are very welcome :)

thanks all,
fabf

Post edited by: fabf, at: 2008/11/13 15:22

Please Log in to join the conversation.

15 years 4 months ago #79615 by fabf
The last problem occurs, simply, because of a URL mismatch (if I logged in on mysite.com, during the checkout process, my URL changes automatically to www.mysite.com, hence, the cookies get lost):

One thing still doesn't work:
When i check out my shopping cart, I am being asked to log in again...

index.php?option=com_user&view=login&return=someLongEncodedString

and when I do so, I find my shopping cart empty again. Repeating the procedure (shop again, check out again) would work.


So I am happy to say that this issue is solved and that VM + CB are working together -- at least on my site :)

best 2 all,
fabf

Post edited by: fabf, at: 2008/11/13 15:27

Please Log in to join the conversation.

15 years 4 months ago #79818 by fabf
A p.s. for anyone who's still following:

The bug referenced in this virtuemart thread was still a problem (pending orders not shown). The fix discussed there (making the ps_orders object global) solved it.

fabf

Please Log in to join the conversation.

15 years 4 months ago #79911 by rednotdead
Replied by rednotdead on topic Re:Combining virtuemart 1.0.14 with CB 1.2 RC3
Woohooo - cheers bud. Saved my bacon!

Please Log in to join the conversation.

15 years 4 months ago #80322 by lohck
fabf wrote:

Joomla: current stable (1.5.7) in legacy mode
CB: current RC3 (1.2 RC3)
Virtuemart: 1.0.15
VM CB plugin by Ben@e-motion: last version for J! 1.0.* (plugin version: 0.1.12)


Hi, I discovered something which you mgt be interested .. or maybe not

the author has actually released a new version for J!1.5 & VM1.1.2. But however it's still for CB1.1 which fortunately, it did work as you have shown. Can you see any problems if I go ahead with this setup? (on CB 1.2 RC3) Cos I'm trying not to publish the legacy plugin if I can

joomlacode.org/gf/project/vmart_cb/ VM/CB Integration, new version
e-motion design
2008-09-02

0.2.1 has been released which jumps forward in compatibility to:

Joomla 1.5.6
Virtuemart 1.1.2
Community Builder 1.1


Post edited by: lohck, at: 2008/11/21 19:43

Post edited by: lohck, at: 2008/11/21 19:44

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.199 seconds

Facebook Twitter LinkedIn