zpupster Posted March 23, 2015 Posted March 23, 2015 hello support, using osc 234,--trying to preview product descriptions in alternanative administration .3 in alternative administration .3 this ( catalog/product_info.php) <?php echo stripslashes($product_info['products_description']); ?> is to be changed to this <?php echo '<span id="aas">'.stripslashes($product_info['products_description']).'</span>'; ?> or to<span id="aas"><?php echo stripslashes($product_info['products_description']); ?></span> but i already have headertags 3.3 installed and have this <?php /*** Begin Header Tags SEO ***/ ?> <?php echo HTS_Highlight(stripslashes($product_info['products_description']), $header_tags_array['keywords']); ?> <?php /*** End Header Tags SEO ***/ ?> i have tried a couple of code changes but with no success. Quote
gadlol Posted March 23, 2015 Posted March 23, 2015 hello support, using osc 234,--trying to preview product descriptions in alternanative administration .3 in alternative administration .3 this ( catalog/product_info.php) <?php echo stripslashes($product_info['products_description']); ?> is to be changed to this <?php echo '<span id="aas">'.stripslashes($product_info['products_description']).'</span>'; ?> or to<span id="aas"><?php echo stripslashes($product_info['products_description']); ?></span> but i already have headertags 3.3 installed and have this <?php /*** Begin Header Tags SEO ***/ ?> <?php echo HTS_Highlight(stripslashes($product_info['products_description']), $header_tags_array['keywords']); ?> <?php /*** End Header Tags SEO ***/ ?> i have tried a couple of code changes but with no success. Hi craig. I have not used HTS_Highlight before, so i dont know the output of that function. If it just outputs the description you can do something like this: <div id="aas"> <?php /*** Begin Header Tags SEO ***/ ?> <?php echo HTS_Highlight(stripslashes($product_info['products_description']), $header_tags_array['keywords']); ?> <?php /*** End Header Tags SEO ***/ ?> </div> Quote Check out the great Alternative Administration System addon for osCommerce!
zpupster Posted March 23, 2015 Author Posted March 23, 2015 hello John, ty for taking a look that did not do it . i tried wrapping the span tag around <?php echo HTS_Highlight(stripslashes($product_info['products_description']), $header_tags_array['keywords']); ?> that did not work either. Quote
zpupster Posted March 23, 2015 Author Posted March 23, 2015 hello, removed this <?php echo HTS_Highlight(stripslashes($product_info['products_description']), $header_tags_array['keywords']); ?> tried this <span id="aas"><?php echo stripslashes($product_info['products_description']); ?></span> and still can not get a preview. Quote
zpupster Posted March 23, 2015 Author Posted March 23, 2015 this did not work either <?php echo '<span id="aas">'.stripslashes($product_info['products_description']).'</span>'; ?> Quote
zpupster Posted March 23, 2015 Author Posted March 23, 2015 John, it does not work in chrome, i got the preview in IE9 but the live edit does not work. Quote
gadlol Posted March 23, 2015 Posted March 23, 2015 Did you try with divs instead of span? Quote Check out the great Alternative Administration System addon for osCommerce!
zpupster Posted March 23, 2015 Author Posted March 23, 2015 yes. i tried divs instead of span. i think i tracked down part of the problem. from google chrome console. Mixed Content: The page at 'https://myiste.com/admin/aas.php?cPath=4' was loaded over HTTPS, but requested an insecure resource 'http://mysite.com/test-p-942.html?language=en'. This request has been blocked; the content must be served over HTTPS. when it loads in IE9, the warning popsup and asks if i should allow content. however in chrome it just does not load the iframe on right panel. from the warning you can see that the right panel is not secure(https), i am not sure how to fix that. but that is why the live edit is not working either, i assume. Quote
zpupster Posted March 23, 2015 Author Posted March 23, 2015 in chrome you can click the alert shield located on the right hand side of the address bar, and allow content. this will allow me to edit the product description, however the real time edit does not work. that was a nifty feature. thanks again, John, for a nice add on. Quote
gadlol Posted March 24, 2015 Posted March 24, 2015 HI , craig. You can always change the https to http in my AAS code so this to work. Although i have thought of that. SO maybe its a bug... Quote Check out the great Alternative Administration System addon for osCommerce!
zpupster Posted March 25, 2015 Author Posted March 25, 2015 the iframe on the right that contains the product description edit view is the unsecured(http). Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.