Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

html,php, and htaccess


Guest

Recommended Posts

In my store site, I have .html pages in addition to the store itself. And on those .html pages, I am

using the include php statement to pull in header, footer, and navigation files. These are NOT from

the store, but from files I created for the .html pages.

 

I have set in .htaccess the following, which has been working just fine, not a problem at all:

AddType application/x-httpd-php .html

AddType application/x-httpd-php .htm

 

 

However, in this new site I'm creating, I am doing the exact same thing and when I add those

two lines of code to the new site's .htaccess file, I get a 500 error for the site.

 

Any clue why it would work on one site and not the other? Same hosting, same page layout/coding.

Link to comment
Share on other sites

No differences?

 

(1) The difference must lie in a contribution that you have set on the site that is working, and a lack of the same contribution that's not on the site that's not working.

 

Registers Global patch? I'd assume that's where the problem lies. I know you used the Actual Attributes Price mod, 'cause I've seen you post in that forum.

 

(2) Your ADMIN settings aren't the same. Something's different there.

 

 

Did you ever figure out why (even after the orders.php fix) that although the order total works fine, the shopping cart subtotal is still at the base price (not the larger priced option)? Like, the base price for 2 feet of a beam is 36, but 4 feet is 77. I buy the 4 feet, and in the order checkout, it says 77. But in the subtotal in the shopping cart, it says 36. Weird.

 

Anyway, I know this didn't help much, but that's my only thought, if everything else is the same.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Link to comment
Share on other sites

Sorry Jason, Have no clue what you are talking about.

 

My 2nd site, that I am trying to add those two lines of code to the .htaccess file, is not a oscommerce store. But since I created files for header, footer, and navigation separately, I am wanting to pull them into my .html pages for this site. This way, if I make changes to the footer file, it shows on all page.

 

I've done this successfully on my 1st site, on it's .html pages. Again, the files for the footer, header, and navigation are not oscommerce files at all.

 

RE: Actual Attributes Price Mod - have no clue what contribution this is.

 

I have added the AJAX Attribute Manager. I have yet to add a product since installing that particular one, so I have no clue if everything is fine just yet or not.

 

And as far as I remember, I have not posted in either of those two's support threads.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...