Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

alternative administration


zpupster

Recommended Posts

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.

 

Link to comment
Share on other sites

 

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>

Check out the great Alternative Administration System addon for osCommerce!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 


Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...