Skip to main content

Strange issue with Votes

More
12 years 11 months ago #128024 by bonzomedia
I staged a new website and voting was working perfectly. After packaging it up with Akeeba and installing onto the live server the Voting function is no longer working. Clicking on the voting stars does not display the "To validate your vote, complete a comment below... " message to appear and entering the email address and a comment and then clicking the Send a comment button does nothing.

I'm mystified as to why it worked on the staging server and not on the live server. I have tried installing the JQuery Easy plug-in but this makes no difference (currrently disabled).

Staging site product URL : staging1.bonzomedia.co.uk/index.php?opti...=penguins&Itemid=112

Live site product URL : www.penguinpacks.com/index.php?option=co...=penguins&Itemid=112

Any ideas please?

Thanks

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

More
12 years 11 months ago #128035 by Jerome
Replied by Jerome on topic Strange issue with Votes
Hi,

First, I will recommend you to update HikaShop to the latest version : 2.2.2
www.hikashop.com/support/documentation/5...ashop-changelog.html

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

More
12 years 11 months ago #128046 by bonzomedia
Replied by bonzomedia on topic Strange issue with Votes
No, that's not the issue - as stated before, it was working perfectly on the staging server (not a localhost) and stopped working when unpacked and installed onto another webhost.

I've upgraded to 2.2.2 and see no difference - it's still broken...

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

More
12 years 11 months ago #128088 by Xavier
Replied by Xavier on topic Strange issue with Votes
Hi,

It seems that you don't have the latest version of the view "vote / mini".
Thanks to check in that view through the menu Display > Views if you have the following code inside:
Code:
<input type="hidden" id="hikashop_vote_ok_<?php echo $hikashop_vote_ref_id;?>" value="0"/> <input type="hidden" id="vote_type_<?php echo $hikashop_vote_ref_id;?>" value="<?php echo $type_item; ?>"/> <input type="hidden" id="hikashop_vote_user_id_<?php echo $hikashop_vote_ref_id;?>" value="<?php echo $hikashop_vote_user_id;?>"/>

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

More
12 years 11 months ago - 12 years 11 months ago #128126 by bonzomedia
Replied by bonzomedia on topic Strange issue with Votes
Xavier,

I've just checked vote / mini.php and the header indicates version 2.2.0
Code:
<?php /** * @package HikaShop for Joomla! * @version 2.2.0 * @author hikashop.com * @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php JHTML::_('behavior.tooltip'); $row = & $this->rows; $vote_enabled = $row->vote_enabled; if ($vote_enabled == 1) { $hikashop_vote_average_score = $row->hikashop_vote_average_score; $hikashop_vote_average_score_rounded = $row->hikashop_vote_average_score_rounded; JRequest::setVar("rate_rounded",$hikashop_vote_average_score_rounded); $hikashop_vote_total_vote = $row->hikashop_vote_total_vote; $hikashop_vote_nb_star = $row->hikashop_vote_nb_star; JRequest::setVar("nb_max_star",$hikashop_vote_nb_star); $type_item = $row->type_item; $hikashop_vote_ref_id = $row->vote_ref_id; $main_div_name = $row->main_div_name; $hikashop_vote_user_id = hikashop_loadUser(); $listing_true = $row->listing_true; $select_id = "select_id_".$hikashop_vote_ref_id; if($main_div_name != '' ){ $select_id .= "_".$main_div_name; }else{ $select_id .= "_hikashop_main_div_name"; } ?> <input type="hidden" id="hikashop_vote_ok" value="0"/> <input type="hidden" id="vote_type" value="<?php echo $type_item; ?>"/> <input type="hidden" id="hikashop_vote_ref_id" value="<?php echo $hikashop_vote_ref_id;?>"/> <input type="hidden" id="hikashop_vote_user_id" value="<?php echo $hikashop_vote_user_id;?>"/> <div class="hikashop_vote_stars"> <select name="hikashop_vote_rating" style="display: none;" class="chzn-done" id="<?php echo $select_id;?>"> <?php for ($i = 1; $i <= $hikashop_vote_nb_star; $i++) { echo '<option value="' . $i . '">' . $i . '</option>'; } ?> </select> <script type='text/javascript'> window.addEvent('domready', function() { var rating = new hikashop_ratings(document.getElementById('<?php echo $select_id;?>'), { id : 'hikashop_vote_rating_<?php echo $type_item; ?>_<?php echo $hikashop_vote_ref_id;?>_', showSelectBox : false, container : null, defaultRating : <?php echo $hikashop_vote_average_score_rounded; ?> }); }); </script> <span class="hikashop_total_vote" > <?php echo JHTML::tooltip($hikashop_vote_average_score.'/'.$hikashop_vote_nb_star, JText::_('VOTE_AVERAGE'), '', ' '.$hikashop_vote_total_vote.' '); if ($hikashop_vote_total_vote > 1) {echo " Reviews";} else echo " Review"; ?> </span> <span id="hikashop_vote_status_<?php echo $hikashop_vote_ref_id;?>" class="hikashop_vote_notification_mini"></span> </div> <div class="clear_both"></div> <br/> <?php } ?>
Last edit: 12 years 11 months ago by bonzomedia. Reason: correction

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

More
12 years 11 months ago #128128 by Xavier
Replied by Xavier on topic Strange issue with Votes
The latest version is 2.2.2 and some changes have been made in that view.
Thanks to update that view by saving your changes in an external file, then click on the dustbin in the views listing.
The following user(s) said Thank You: bonzomedia

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

More
12 years 11 months ago #128130 by bonzomedia
Replied by bonzomedia on topic Strange issue with Votes
Xavier,

That's great, it's fixed that issue, thank you.

Still puzzled why it worked on the staging site and not the live site as I'm sure that I did not make any customisations to mini.php!

Anyway, thanks again!

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

Time to create page: 0.419 seconds
Powered by Kunena Forum