if statement for if product text field does not equal a certain expression
<?php if ($_product->getSku()!=='what it says in text field'):?> <?php endif; ?>
Magento eCommerce 1.3.2.4 :: Hover Rollover Mouse Effect on the Add-to-cat button and info buttons
This was kinda easy, but I didnt know what to do for the longest time. I could not find any info on how to do this.
Here is what I did.
Just add this to your boxes.css file in your skin/frontend/default/[theme]/css folder
/*The background color is the effect I had for mine when I rolled my mouse over the button*/
Magento eCommerce 1.3.2.4:: Or statement based on variable input on attribute.phtml page – using static block as includes
Magento eCommerce:: Change the size of the Price (font-size) on various pages like catalog, related, view.phtml
Like I said before I am really a novice at web dev. But I could not find this info anywhere, so here it is. It took me a a little while to figure this out.
Too change the price size on the catalog page:
Magento 1.3.2.4 :: or statement based on variable input on available.phtml ->getMethodTitle
I used this staement below on the available.phtml page to add some text if the shipping method was either UPS next day air or UPS 2nd day air
<?php if(($_rate->getMethodTitle()==’UPS Second Day Air’) or ($_rate->getMethodTitle()==’UPS Next Day Air’)):?>or statement<?php endif ;?>
–Bryan Sammon
Magento 1.3.2.4 — Add a shipping map to your checkout page (one page checkout)
I wanted to add a UPS shipping map to my checkout page in magento 1.3.2.4.
The file that needs to be edited is: app/frontend/design/default (or other theme) /[Choose your template]/checkout/onepage/shipping_method/available.phtml
This statement below will add whatever html you want to add to the UPS ground line on the checkout page.
<?php if($_rate->getMethodTitle()==’UPS Ground’):?><span>INSERT YOUR HTML HERE</span><?php endif ;?>
I wanted this to go on the same line as the UPS Ground and price.
Here is what my code ending up looking like:
From line 35:
<?php foreach ($_rates as $_rate): ?>
If and else statement on Attributes.phtml
Attribute include based on custom Design – useful tip on attribute.phtml
This will do a include based on the custom design.
Magento eCommerce:: Best advice I could ever give anyone with alot of products
Edit the attributes.phtml file. Set the description separate from the (foreach) statement. This will help a ton.
Magento eCommerce::If and else statement when using static block includes
I did this on the attributes.phtml file:
Worked nicely. This way I can use one statement if the attribute: CompatibleIpods2 (type: yes/no) was set to yes (1) or no (2)
Magento 1.3.2.4