Posted 12 November 2011, 16:30
(FOR AJAX v1.5.5 - using osc 2.3.1)...
I don't know if this holds true for everyone, but I just fixed my problem (see previous post #1139).
The instructions say :
Quote
Find:
<?php
if (!isset($HTTP_GET_VARS['delete'])) {
include('includes/form_check.js.php');
}
<?
Replace with:
<?php
if (!isset($HTTP_GET_VARS['delete'])) {
include('includes/form_check.js.php');
// +Country-State Selector
require('includes/ajax.js.php');
// -Country-State Selector
}
?>
Just before this is the require for template_top (for osc 2.3.1):
require(DIR_WS_INCLUDES . 'template_top.php');
Just above this you have to enter your scripts for the page, so I had to add the function refresh_form here:
<!-- ## BOF: Country-State Selector v1.5.5 ## -->
<script type="text/javascript"><!--
function refresh_form(form_name) {
form_name.refresh.value = 'true';
form_name.submit();
return true;
}
//--></script>
<!-- ## EOF: Country-State Selector v1.5.5 ## --><?php
require(DIR_WS_INCLUDES . 'template_top.php');
So you get...
?><!-- ## BOF: Country-State Selector v1.5.5 ## -->
<script type="text/javascript"><!--
function refresh_form(form_name) {
form_name.refresh.value = 'true';
form_name.submit();
return true;
}
//--></script>
<!-- ## EOF: Country-State Selector v1.5.5 ## --><?php
require(DIR_WS_INCLUDES . 'template_top.php');
if (!isset($HTTP_GET_VARS['delete'])) {
include('includes/form_check.js.php');
/* ## LINE ADD: Country-State Selector v1.5.5 ## */
require(DIR_WS_INCLUDES . 'ajax.js.php');
}
?>
I'm not sure why I had to do this yet, as the other files didn't need it (I don't think). I haven't completely checked through this answer to this yet, but it certainly made that final page work for me! If someone knows the answer to this, I would love to be enlightened...
Edited by The Munch, 12 November 2011, 16:36.
Thank You!!
----------
Using: OSC 2.3.1, Algozone Template, Jcow 5 Pro, CometChat 4 Premium.
Contributions for OSC-2.3.1: QT Pro 4.6.1, Easy Populate EPv2.77a, Admin Notes, Contribution Tracker, Multi-Product Manager, myQBi Quickbooks Sync, Order Editor 5.0.9, Dynamic Sitemap, Tax ID in Order Editor, Separate Pricing Per Customer v4.2.2 ... etc ...
Contributions for OSC-2.2 I've Modified for OSC-2.3.1: Admin Level Account with Categories 2.3.4, File Logging or Email for Failed Admin Login Attempts, Autologon v1.09, Admin Specials by Categories, CCGV 6.0_1, Hide Categories, How Did You Hear About Us, MSRP Listing, Multiple Sales Per Product, osc as info site, OSC Checkout Security Boost v1.1, Points and Rewards Module, Quick Stock Updater, Quick Updates 292, RMA Returns System 2.6, Show Unit Price, Store Mode, Supplier Admin v1.3, Tell A Friend, Required Customer Details v22rc2a, Admin Change Customers Password v3.3, PDF Invoice & PackingSlip 1.6, Quick Price Updates for SPPC v1.5, Country-State Selector v1.5.5 + Limit Countries v2.2, Contact Us Popup Business Card, No Right Click, Delete Customer Account v1.2, Control Login v2.2, Member Type Control v1.1, .... etc...