It should reserve all existing store credit.
Printable View
This seems to be working - the credit is shown on the checkout page with the option to apply the credit to the current purchase.
One problem: The sidebox is not showing up. It is showing on the list of sideboxes:
sideboxes/store_credit.php
I've tried turning it off and back on again, but it doesn't show up.
Had to uninstall but had a problem at step 3 of the checkout page
I followed your instruction to uninstall
Get this message and the rest of the page is blank
1146 Table 'shazzas_clothes08.sc_products_ratio' doesn't exist
in:
[SELECT ratio FROM sc_products_ratio WHERE products_id=116 LIMIT 1]
Is there anything I can do to fix this as they keep clicking refresh which dup orders
Any help will be appreciated./
Using Zen Cart 3.8
Oh, did you you remove all the files? Regards. And also, which version you use? While the new version does not over-write any file, the old versions did.
Hi Yellow
Wow! that was a fast reply
Firstly, I for one appreciate your mod, just having probs installing it.
3.01c is the version I used.
I have lost the page for uninstall to check, but I beleive aI followed all instructions
Is there a newer version that I can try and perhaps fix this?
Cheers
Ausjohn
If you need help, pm me your ftp and admin details ^_^. I will go in and fix it for you (Im doing the same thing for many others in order to get all the bugs fixed)
Hi,
I'm trying to install Module Manager on my localhost but encountered the following error:
btw, I have installed the Advanced cross-sell mod. also by yellow1912 so my init_yclass.php file in C:\Program Files\xampp\htdocs\zen138a\shadmin\includes\init_includes looks like the following (note the red color text):Code:Fatal error: Cannot redeclare class yclass in C:\Program Files\xampp\htdocs\zen138a\includes\init_includes\init_yclass.php on line 3
Kindly show me where I have done wrong. Thanks.Code:<?php
require_once(DIR_FS_CATALOG.'includes/init_includes/init_yclass.php'); // added for shared class use by Module Manager. By yellow1912
// y stands for yellow1912 :p. I simply add this to store all the functions frequently used in my mods
// PHP4 always pass object by value (default) while PHP5 pass by reference
if (version_compare(phpversion(), '5.0') < 0) {
eval('
function clone($object) {
return $object;
}
');
}
class yclass{
function db_result_to_string($glue, $db_result){
$temp_array = array();
if($this->is_obj($db_result,'queryFactoryResult')){
// We need to clone, because we don't want to touch the real object
while(!$db_result->EOF){
$temp_array[] = $db_result->fields['products_'.XSELL_FORM_INPUT_TYPE];
$db_result->MoveNext();
}
$db_result->Move(0);
$db_result->MoveNext();
}
return implode($glue,$temp_array);
}
// This function does not work for all languages! BEWARE
function array_to_upper(&$entries){
foreach($entries as $entry){
$entry = strtoupper($entry);
}
}
// http://us3.php.net/manual/en/function.is-object.php#66370
function is_obj( &$object, $check=null, $strict=true ){
if (is_object($object)) {
if ($check == null) {
return true;
} else {
$object_name = get_class($object);
return ($strict === true)?( $object_name == $check ):( strtolower($object_name) == strtolower($check) );
}
} else {
return false;
}
}
}
?>
Stenrique: did you update the whole shared-class as instructed? I think that's where the problem is
Regards
Yellow,
Please HELP!
I don't know what I did but after installing the mod for this I get this error on checkout
1146 Table 'simetrao_zc1.sc_products_ratio' doesn't exist
in:
[SELECT ratio FROM sc_products_ratio WHERE products_id=233 LIMIT 1]
What do I do???
Hi Simetra, did you go to tools->module manager and choose install?
Regards