Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Virtuemart 1.1.2 integration
Pages: [1] 2 3   Go Down
  Print  
Author Topic: Virtuemart 1.1.2 integration  (Read 113066 times)
0 Members and 1 Guest are viewing this topic.
mrskiprat
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« on: November 12, 2008, 02:50:19 »

Hi guys,

Currently trying to fully integrate Jcomments2.0 into my site.

Looked really great so I thought I would let it deal with my shop comments too.

I have tried following the instructions here however, and cannot complete the details as I cannot find

  $product_rating = $VM_LANG->_PHPSHOP_CUSTOMER_RATING .": <br />";


in the shop.browse.php


My shop is virtuemart version 1.2.


Thanks!


Skip
« Last Edit: January 04, 2009, 13:46:40 by Sulpher » Logged
Sulpher
Jr. Member
**

Karma: 3
Offline Offline

Gender: Male
Posts: 15



WWW
« Reply #1 on: November 15, 2008, 01:20:58 »

Open file /administrator/components/com_virtuemart/html/shop.product_details.php
and find lines (approx. 348-353):

Code: (php)
/*** Show all reviews available ***/
  $product_reviews = ps_reviews::product_reviews( $product_id );
  /*** Show a form for writing a review ***/
  $product_reviewform = ps_reviews::reviewform( $product_id );


and replace to:
 
Code: (php)
  $comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
  if (file_exists($comments)) {
    require_once($comments);
    $product_reviews = JComments::showComments($product_id, 'com_virtuemart', $product_name);
    $product_reviewform = "";
  }
 


Open file /administrator/components/com_virtuemart/html/shop.browse.php
find and remove next lines (from 398 up to 405):

Code: (php)

                if (PSHOP_ALLOW_REVIEWS == '1' && @$_REQUEST['output'] != "pdf") {
                        // Average customer rating: xxxxx
                // Total votes: x
                        $product_rating = ps_reviews::allvotes( $db_browse->f("product_id") );
                }
                else {
                        $product_rating = "";
                }
 

That should help.
« Last Edit: November 15, 2008, 01:24:54 by Sulpher » Logged

RoundTheme  - Amazing templates for JComments & Kunena
NorrNext - free & club extensions for Joomla!
mrskiprat
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #2 on: November 15, 2008, 04:31:45 »

Will try now.

Thanks for the reply Smiley


S
Logged
korb
Jr. Member
**

Karma: 3
Offline Offline

Posts: 14



WWW
« Reply #3 on: December 13, 2008, 14:56:27 »

Any news regarding this issue?
But why use VM 1.2, isn't it buggy?
Danny
Logged

Visit my JComments powered website
PC Adviser - IT Info & Shop in one place.
mrskiprat
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #4 on: December 14, 2008, 18:56:37 »

Works fine for me Smiley

I allowed commenting on an article, and used that as my feedback page Smiley


I can send you the url if you want to see what I mean.

S
Logged
picharras
Guest
« Reply #5 on: December 28, 2008, 10:56:00 »

Saludos.

No he conseguido integrar JComment 2.0.0.14 con Virtuemart 1.1.2 en Joomla 1.5.8 siguiendo los pasos de Sulpher.

Si alguien me pudiera ayudar se lo agradeceria mucho.
Logged
Sulpher
Jr. Member
**

Karma: 3
Offline Offline

Gender: Male
Posts: 15



WWW
« Reply #6 on: January 04, 2009, 13:49:35 »

Please speak English.

What is the problem of yours with integration?  Please write on which way the error occurs? What you cannot do? Did you clean site and browser cache after modifying code?
Logged

RoundTheme  - Amazing templates for JComments & Kunena
NorrNext - free & club extensions for Joomla!
nesmajnik
Guest
« Reply #7 on: January 05, 2009, 00:26:15 »

Sulpher your explanation doesn't work to. You say that we need to find this code
Code:
/*** Show all reviews available ***/
  $product_reviews = ps_reviews::product_reviews( $product_id );
  /*** Show a form for writing a review ***/
  $product_reviewform = ps_reviews::reviewform( $product_id );

but I find only this code:

Code:
/*** Show all reviews available ***/
$product_reviews = ps_reviews::product_reviews( $product_id );
/*** Show a form for writing a review ***/

if( $auth['user_id'] > 0 ) {
$product_reviewform = ps_reviews::reviewform( $product_id );
}
}

Then I deleted that code and I replaced with 
Code:
  $comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
  if (file_exists($comments)) {
    require_once($comments);
    $product_reviews = JComments::showComments($product_id, 'com_virtuemart', $product_name);
    $product_reviewform = "";
  }

and then I delete this code in shop_browse.php
Code:
if (PSHOP_ALLOW_REVIEWS == '1' && @$_REQUEST['output'] != "pdf") {
                        // Average customer rating: xxxxx
                // Total votes: x
                        $product_rating = ps_reviews::allvotes( $db_browse->f("product_id") );
                }
                else {
                        $product_rating = "";
                }

But it doesn't work!
I have Joomla 1.5.8, virtuemart 1.1.2 and Jom Comment 2.0 RC1 Build 218
Logged
jarsen
Guest
« Reply #8 on: January 23, 2009, 06:55:48 »

Hello. I am new using JComment. My system is J1.5.9 and now Virtuemart 1.1.3 (latest). I have installed JComment with the following observations.

- I cannot find............. $product_rating = $VM_LANG->_PHPSHOP_CUSTOMER_RATING .": <br />"; anywhere.
- The star rating system in Virtuemart has dissappeared completely after hacking the files. Stars are not displayed in the front
   end. They are however displayed in the backend admin for reviews.
- Existing published comments are not visible anywhere. Cannot find any way to make them visible.
- New comments can be posted as the commenting layout is displayed. This seems to be ok.

Any help with this would be appreciated. Thank you.
Logged
mrskiprat
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #9 on: January 23, 2009, 18:08:52 »

Looks like 1.1.3 of VM has changed some of the coding.

Hopefully there is still an integration possible Smiley


S
Logged
jarsen
Guest
« Reply #10 on: January 24, 2009, 07:47:35 »

This also happened with Virtuemart 1.1.2. I had hoped that upgrading to the latest version would fix this issue. Could the developer please check this out. Thank you.
Logged
korb
Jr. Member
**

Karma: 3
Offline Offline

Posts: 14



WWW
« Reply #11 on: January 31, 2009, 03:28:51 »

I have a feature request to make: make a "natural" integration with VirtueMart.

What does it mean?

SImple:
IF is installed and is enabled Jcomments bot, echo as product_review form
else
Use default VM product review form.

Thanks
Logged

Visit my JComments powered website
PC Adviser - IT Info & Shop in one place.
matt
Guest
« Reply #12 on: May 14, 2009, 21:07:05 »

Works fine for me Smiley

I allowed commenting on an article, and used that as my feedback page Smiley


I can send you the url if you want to see what I mean.

S

Hi -

I would like to see an example please!

Thanks -

Matt
Logged
mrskiprat
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« Reply #13 on: May 14, 2009, 21:20:05 »

Sorry mate,

Though I am using Jcomments still, I've had to remove the shop commenting as it no longer works  Shocked
Logged
inthysite
Guest
« Reply #14 on: September 11, 2009, 03:02:00 »

I just installed this on Joomla 1.5.14 and VM 1.1.3 and it works just fine.  I've followed the instructions listed in this topic with no problems, worked first time.

Here is what my code looks like (rather than delete the old code I just commented it out so you can see the changes)

This is administrator/components/com_virtuemart/html/shop.product_details.php:
Code:
/* LIST ALL REVIEWS **/
if (PSHOP_ALLOW_REVIEWS == '1') {
/*** Show all reviews available ***/
//$product_reviews = ps_reviews::product_reviews( $product_id );
/*** Show a form for writing a review ***/

//if( $auth['user_id'] > 0 ) {
//$product_reviewform = ps_reviews::reviewform( $product_id );
//}
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
  if (file_exists($comments)) {
    require_once($comments);
    $product_reviews = JComments::showComments($product_id, 'com_virtuemart', $product_name);
    $product_reviewform = "";
  }
}

This is administrator/components/com_virtuemart/html/shop.browse.php:
Code:


//if (PSHOP_ALLOW_REVIEWS == '1' && @$_REQUEST['output'] != "pdf") {
// Average customer rating: xxxxx
        // Total votes: x
// $product_rating = ps_reviews::allvotes( $db_browse->f("product_id") );
//}
//else {
// $product_rating = "";
//}

Hope this helps someone.
Logged
Pages: [1] 2 3   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Virtuemart 1.1.2 integration
 
Jump to: