Please upgrade here. These earlier versions are no longer being updated and have security issues.

opencart integration

giammi73giammi73 New
edited March 2016 in Vanilla 2.0 - 2.3

I'm trying to integrate in opencart

I just need to find the way to give
var vanilla_identifier

the have a forum in every product
well
I tryed with
<?php echo $product_name; ?>
but don't works

some Idea?

the db name is
product > product_id

<div id="vanilla-comments">&nbsp;</div>
<script type="text/javascript">

var vanilla_forum_url = 'http://www.magicsound.it/forum/'; // The full http url & path to your vanilla forum
var vanilla_identifier = '****I WANT TO PUT PRODUCT ID HERE****; // Your unique identifier for the content being commented on

Comments

  • hgtonighthgtonight ∞ · New Moderator

    I think you would have better luck over at the opencart support forum: http://forum.opencart.com/

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • giammi73giammi73 New
    edited March 2016

    maybe.. but I don't understain why don't put some isctruction here!!
    you have a really nice forum script.. perfectly integrated with wordpress..
    There is a really little work to integrate with other sistems!!

    at least some little istruction to how put a DB query in tht place!!

  • hgtonighthgtonight ∞ · New Moderator

    @giammi73 said:
    maybe.. but I don't understain why don't put some isctruction here!!
    you have a really nice forum script.. perfectly integrated with wordpress..
    There is a really little work to integrate with other sistems!!

    at least some little istruction to how put a DB query in tht place!!

    I have no idea how to interface to the opencart system.

    You need to pull the product ID out and assign it to the javascript variable vanilla_identifier.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • well i tryed something but probably I thing that I do some kind of mistakes..

    If I try a unique id auto generated like a timestamp
    <?php echo time(); ?>
    or some other things that else where works I have that error:

    Can not find the thread to comment .
    DiscussionID is required .
    
  • if a symply write

    '12345'
    i can post .. but on all products..

    if i leave empty
    ''
    i see the forum on all products

  • hgtonighthgtonight ∞ · New Moderator

    You need a constant and unique value for each page you want to have comments. This is why I suggested the product ID.

    There is probably a way to get the product ID from the opencart framework. You need to figure that out. Hence why I suggested asking over at their forum.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • solved

    the embed script works but outside product tabs..
    need to insert directly in
    product.tpl

    the unique id is
    <?php echo $product_id; ?>

    well to insert in tab need some vqmod files tho import the script and php..
    i will do in few days.. ad post here

    hgtonight
Sign In or Register to comment.