Jump to content

charmdiva

Members
  • Content count

    183
  • Joined

  • Last visited

Posts posted by charmdiva


  1. Oops! Just realized adding the fix messed up my table layout. My right column is now at the bottom of the page. In case this happens to anyone else, I had to add <tr><td> before the new code and </td></tr> after the code to put it in a row.

     

     

     

     

    Are you using a template system? Sometimes this can make a difference in whether or not the error is displayed. Is the error message showing up in your URL field?

     

    If it is in your URL field, and you are using a template system, try this:

     

    OPEN checkout_payment.php

     

    FIND around line 148:

     

    <?php
     if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {
    ?>
      <tr>
    	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    	  <tr>
    		<td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></b></td>
    	  </tr>
    	</table></td>
      </tr>
      <tr>
    	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
    	  <tr class="infoBoxNoticeContents">
    		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    		  <tr>
    			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    			<td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error['error']); ?></td>
    			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    		  </tr>
    		</table></td>
    	  </tr>
    	</table></td>
      </tr>
      <tr>
    	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
    <?php
     }
    ?>

     

    ADD this code before:

     

    <?php
     if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
    ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
     <tr class="headerError">
    <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
     </tr>
    </table>
    <?php
     }
    ?>


  2. I apologize if this has already been addressed. I skimmed through 100+ pages and may have missed something.

     

    Initially, I thought the coupon was working OK since I did a test order. I have it set to take $10 off an order of $25 or more. However, I found out that it was giving the discount to anyone who used the coupon, no matter what their order total. I fixed that by changing the admin settings. I had it displaying the subtotal with discount applied. When I changed that, it no longer could be used for orders under $25. But if someone still puts in the coupon code when their order is below $25 it just takes them back to the same page where the coupon code is entered. There is no error message telling them they can't use the coupon.

     

    I realize customers shouldn't be entering the coupon code if their order doesn't qualify, but I found out about the problem when a customer placed a $20 order and was given the $10 off. Is there a way to have an error show if they try to do this? Like...'Hey, you doofus...you can't use the coupon!' Just kidding on that one.


  3. I've made changes to my install but you might try looking at general.php in your STS module folder. There are variables set up there.

     

    Can anyone help me with the <!--$headcontent--> function, i'm a bit stumped.

     

    I would like to add a few meta tags etc to all the pages on my site:

    The manual says <!--$headcontent--> is the "tag to put in the <head> of your template. It contains the charset of the page, meta tags, base href and javascript taken out of header.php."

     

    I open 'header.php' and can't find where to put the above meta tags and other info in order for them to show up on every page using the <!--$headcontent--> tag?

     

    Any help much appreciated!

     

    Alex.


  4. I use the lightbox contribution for STS and it works great. Not hard to implement, either.

     

    lol funny thing, i turned off popup_image from the admin side and deleted the javascript from the product_info.php.html (inside the content folder) and it started working.

     

    But its not using the lightbox effect for the window. i thought if i didnt use a template it would execute like the default and its not :(

     

    i see one for sts :), i'll let u know how it turns out :)


  5. What does the error say?

     

    forget about the featured products question, my new question is im trying to get the popup_image to work, i installed it in admin, and i copied the template from the full example just to see if it works and placed it sts_templates/mytemplate/popup_image.php.html and when i click on the click to enlarge, it doesnt do anything, shows an error on the bottom left.

  6. View the outputted HTML from your browser (View>Page Source). Almost looks to me like your table structure got messed up, like your <tr> and <td> tags aren't nested correctly or something along that line.

     

    Did and you are correct. It just worked.

     

    However, it didn't work as expected.

     

    Although it works fine without STS, with a templated enabled I get this:

    catmenli1.th.jpg

     

    A you can see, the manufacturers box hs stretched to 100% of the page. This happens to the box below wherever I put the menu.

     

    Obviously the menu is conflicting with something in STS...but what? :)


  7. I was able to get this working with STS. I made it a user defined box by opening up catalog/includes/modules/sts_inc/sts_user_code.php and adding this before the final ?>

     

     $sts->start_capture();
      require(DIR_WS_MODULES . FILENAME_RELATED_PRODUCTS);
      $sts->stop_capture('related_products', 'box');

     

    This created an STS variable called $related_products that I inserted into my template. I think there is an easier way, but I haven't had time to work through it. You can see it working here:

     

    http://bellagemmadesigns.com/product_info....;products_id=70

     

     

    Hi,

     

    I've just installed this contribution and got confused as it's not working for me.

    Well the store is still running without getting any bugs, the configuration and management in Admin area works OK, but there's nothing displayed at product info page.

    I am using the STS contrib and made several tests. I have placed the insertion PHP script (that includes the optional_related_products.php) to my template and nothing has changed, even when I've pasted the entire code of optional_related_products.php to the template. No HTML tags, no images, nothing.

     

    Any ideas?

     

    Thank you.


  8. I am used to using server side includes in my HTML pages to make maintenance easier. I'll have to see if I can use PHP include to do this. It would save me a lot of time.

     

    Hi Debbie, Since version 4, you can actually enter any PHP code directly into your template to do all kinds of neat things. It actually adds some serious features to the osCommerce cart rather than just adding a template engine.

     

    These are advanced features of course but if you know your way around PHP then the sky is the limit. :thumbsup:


  9. We can enter an include statement into our STS templates directly? Didn't know that...good piece of info. I had been creating an STS variable and setting it equal to the include.

     

    You could add a PHP Include statement directly into your template to add in the Article Manager stuff.

     

    :thumbsup: Keep in mind that the Article Manager contribution is based on infoboxes so you have your work cut out for you.


  10. Found my error...another *DUH* moment.

     

     

    Has anyone gotten a 'related products' contribution to work with STS4? I downloaded one and found on the catalog side that it is just an include file. I created an STS variable for this and inserted it into my product_info.php.html file. However, it is being included at the top of my page, before the HTML opening tag. At first, I thought I had screwed up my table structure but made sure I had deleted the table row tags that Dreamweaver put in my template so they wouldn't be redundant when the include was added. I also noticed there was a number 1 where the included should have been displayed in my template. I'm not sure where I am going wrong with this.

     

    Thanks


  11. Has anyone gotten a 'related products' contribution to work with STS4? I downloaded one and found on the catalog side that it is just an include file. I created an STS variable for this and inserted it into my product_info.php.html file. However, it is being included at the top of my page, before the HTML opening tag. At first, I thought I had screwed up my table structure but made sure I had deleted the table row tags that Dreamweaver put in my template so they wouldn't be redundant when the include was added. I also noticed there was a number 1 where the included should have been displayed in my template. I'm not sure where I am going wrong with this.

     

    Thanks


  12. How did you add it to your STS template?

     

    Thanks

     

    Hi there,

    Altough I normally ask question and not very experienced , but in this matter I want to tell you my experience.

    I was using STS , and then I installed Optional related products. I followed instructions very carefully ...

    and it is working perfectly well.

     

    Take care

    zee


  13. What is captured in the content variable varies dependent on what page you want to change. It includes everything you would see in the main part of the default page (not the header, left or right columns, or footer). If you want to manipulate what is in the content variable, you would need to know some PHP as you need to change the actual file for each page, i.e. to change the index or category pages you would make changes to index.php, to make changes to the product info pages you need to change product_info.php, etc. The file sts_display_output is where many placeholder variables are defined.

     

     

     

    yes, i understand that, but lets say i wanted to split $content up to a $header and a $body..... where is $content <-- defined as the place holder. Sorry for not explaining that well, as i reread you answered my question , but that wasn't what i wanted to ask.. Thanks

    -Dinny


  14. It depends on what you want to change. A lot of changes can be made through the language files. The main content of the index page can be changed in the language files. You can access them through the admin panel under Tools. There is a variable called MAIN that holds the content for the main part of this page. The same can be done for most of the language on your other pages.

     

    If you want to make changes other than language, you would need to modify the PHP file for that particular template.

     

    Hey, im pretty much a huge newbie at this and am attempting to all this from scratch with a very subtle HTML background. As i browse through the PHP files im curious to where you define what the "placeholders" hold, if the makes sense. Basically i type $content in my html file and it displays whatever $content is holding. I was hoping to adjust what these placeholders were displaying if i could. Thanks.

     

    -Dinny


  15. OK...got it to work. Not sure what I missed the first time around. Are you in the Chicago area, Bill?

     

    Debbie, it would be named using the naming structure of the PHP files listed in your catalog/includes/boxes folder. For the categories infobox, you would use the following infobox template name:

     

    infobox_categories.php.html

     

    The infobox template should be uploaded into your catalog/includes/sts_templates/*template folder*/boxes folder.

    Also, be sure you have Use Infobox Templates enabled in the STS Default Module in your store's admin.


  16. I'm having trouble getting the infobox templates to work. I enabled them in admin, created my html template, uploaded it to my templates folder in a boxes subfolder. Since it is for my categories box, I tried naming both infobox_category.php.html and infobox_categories.php.html. The default box still shows when I view my pages. Either I am missing a step or I'm not naming the infobox file correctly?

     

    Thanks


  17. Looks like I posted in the wrong place *blonde moment*.

     

    I'm not a programmer, though I do understand some basic programming principles. However, even if I knew nothing about programming, I think I would've been able to install STS without a hitch. My current project's design doesn't deviate a whole lot from the basic OSC skin, but I think it is a lot more pleasing to the eye. Give it a go.

     

    Most users who are serious about osCommerce will have a "test" site installed on a local server (PC) to "play" around with. I would suggest that you install a copy of osCommerce on your computer and then install STS on that test site.

     

    :thumbsup: You will find that it is very simple to install...probably the most easiest of all other contributions available, if not the most documented and supported by the authors and users. Keep in mind, it was created for users just like you who do not know (or want to know) PHP but still want osCommerce to flow with "their" design.

×