Joomdle R0.81 and Virtuemart 2.0.6

  • Paulo Cezar Diniz Junior
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 11 months ago #1 by Paulo Cezar Diniz Junior
Joomdle R0.81 and Virtuemart 2.0.6 was created by Paulo Cezar Diniz Junior
Hi Antonio,

When you give me in advanced the R0.8 to test, in my firt time the integration between VM2 2.0.2 and R0.8 works very fine, but after I update the VM2 to 2.0.6, the integrations stop work.

The very strange is that in statistics view in VM2 2.0.6 I can see that the products was there, but in products view I can't.

I am using in my website some new functionalits of the R0.8, but i can't add in my store the courses.

So if you have any ideia about it, tell us.

Thank you

Paulo

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago - 13 years 11 months ago #2 by Dan
Replied by Dan on topic Re: Joomdle R0.81 and Virtuemart 2.0.6
I'm evaluating Joomdle 0.81 and Virtuemart 2.0.6 as well, and I have the same problem: No Moodle courses show up in the VirtueMart store.

Checking the "live update" information to VirtueMart in Joomla, the VirtueMart API has changed:

---
Latest live update information Print E-mail

Please consider the following changes in the layouts or API of VirtueMart 2
From VM 2.0.4 To 2.0.6

If you use another template then the default one provided, please adapt it to those changes :

1) components/com_virtuemart/views/askquestion/tmpl/form.php
line 21 / 22

$min = VmConfig::get('vm_asks_minimum_comment_length', 50);

$max = VmConfig::get('vm_asks_maximum_comment_length', 2000) ;

to

$min = VmConfig::get('asks_minimum_comment_length', 50);

$max = VmConfig::get('asks_maximum_comment_length', 2000);

2) /components/com_virtuemart/views/cart/tmpl/default_pricelist.php
- line 150, an echo was missing

Old code:

<td align="right" ><form action="" method="post" class="inline">

Change to

<td align="right" ><form action="" method="post" class="inline">

- line 339

Old code

<td align="right"><strong><?php echo $this->currencyDisplay->createPriceDiv('totalInPaymentCurrency','', $this->totalInPaymentCurrency,false); ?></strong></td>

Change to

<td align="right"><strong><?php echo $this->totalInPaymentCurrency; ?></strong></td>



3) components/com_virtuemart/views/invoice/tmpl/invoice_items.php
line 163 and 175 same as number 2 in case you use a form there

4) components/com_virtuemart/views/invoice/tmpl/mail_html_pricelist.php

remove all lines and replace with

$oldlayout=$this->getLayout();

$this->setLayout('invoice');

echo $this->loadTemplate('items');

$this->setLayout($oldlayout);

5) components/com_virtuemart/views/user/tmpl/edit_address.php
line 147

Old code

<input type="hidden" name="shipto_virtuemart_userinfo_id" value="" />

<?php echo JHTML::_('form.token');

Change to

<?php if (!empty($this->virtuemart_userinfo_id)){

echo '<input type="hidden" name="shipto_virtuemart_userinfo_id" value="'.(int)$this->virtuemart_userinfo_id.'" />';

}

echo JHTML::_('form.token');

6: components/com_virtuemart/views/user/tmpl/edit_shopper.php
line 41

Old code

<input type="hidden" name="virtuemart_userinfo_id" value="" />

Change to

<?php

if(!empty($this->virtuemart_userinfo_id)){

echo '<input type="hidden" name="virtuemart_userinfo_id" value="'.(int)$this->virtuemart_userinfo_id.'" />';

}

?>


From VM 2.0.2 To 2.0.4

If you use another template then the default one provided, please adapt it to those changes :

1) The calls for creating the prices have been changed
The display:

$prow->subtotal_tax_amount

has been changed to

$this->currencyDisplay->createPriceDiv('taxAmount','', $this->cart->pricesUnformatted[$pkey],false,false,$prow->quantity)

The reason for this change is that the prices are not stored anylonger in the cart to keep the session clean, so that more products can be added to the cart.
The file affected by these change is :
- all price layouts in the cart
=> /components/com_virtuemart/views/cart/tmpl/default_pricelist.php

2) The function priceDisplay has changed

Before:

echo $this->currency->priceDisplay( $item->product_basePriceWithTax)

Now:

echo $this->currency->priceDisplay( $item->product_basePriceWithTax ,0, $qtt)

Files affected are:

=> /components/com_virtuemart/views/invoice/tmpl/invoice_items.php
=> /components/com_virtuemart/views/invoice/tmpl/mail_html_pricelist.php
=> /components/com_virtuemart/views/invoice/tmpl/mail_html_pricelist.php

3) display of the single items in the cart, mails, invoice and orders
Furthermore we changed the display of the single items in the cart, mails, invoice and orders.
When you used overwrites consider to start with the new layout and add your changes again,
it may be faster and cleaner.
---

VirtueMart came with a template i bought, and I'm not sure how to roll back to 2.0.4.

If anyone knows how to fix the joomdle integration module given the information above, it would be greatly appreciated!
Last edit: 13 years 11 months ago by Dan.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle R0.81 and Virtuemart 2.0.6
Confirmed: there is a change in VM 2.0.6 that requires a change in Joomdle code.

I already fixed it, so if anyone is interested in a testing package, write to antonio@joomdle.com.

Please Log in or Create an account to join the conversation.