Magento tranjectional mail with variable by template id
Magento tranjectional mail with variable by template id
Magento Group product configrable product assign prices
Looks like you are using SCP or the SimpleConfigurable products extension. That is known to cause issues. Please try the following:
comment out lines 104-106 of /skin/frontend/base/default/js/scp_product_extension.js. However this may affect how SCP operates.
so this code:
Product.Config.prototype.updateFormProductId = function(productId){
if (!productId)
{ return false; }
var currentAction = $('product_addtocart_form').action;
newcurrentAction = currentAction.sub(/product\/\d+\//, 'product/' + productId + '/');
$('product_addtocart_form').action = newcurrentAction;
$('product_addtocart_form').product.value = productId;
};
looks like this:
Product.Config.prototype.updateFormProductId = function(productId){
if (!productId) { return false; }
var currentAction = $('product_addtocart_form').action;
//newcurrentAction = currentAction.sub(/product\/\d+\//, 'product/' + productId + '/');
//$('product_addtocart_form').action = newcurrentAction;
//$('product_addtocart_form').product.value = productId;
};
comment out lines 104-106 of /skin/frontend/base/default/js/scp_product_extension.js. However this may affect how SCP operates.
so this code:
Product.Config.prototype.updateFormProductId = function(productId){
if (!productId)
{ return false; }
var currentAction = $('product_addtocart_form').action;
newcurrentAction = currentAction.sub(/product\/\d+\//, 'product/' + productId + '/');
$('product_addtocart_form').action = newcurrentAction;
$('product_addtocart_form').product.value = productId;
};
looks like this:
Product.Config.prototype.updateFormProductId = function(productId){
if (!productId) { return false; }
var currentAction = $('product_addtocart_form').action;
//newcurrentAction = currentAction.sub(/product\/\d+\//, 'product/' + productId + '/');
//$('product_addtocart_form').action = newcurrentAction;
//$('product_addtocart_form').product.value = productId;
};
How to remove decimal price in magento
- Open code/core/Mage/Directory/Model/Currency.php
- Find the following :-
public function format($price, $options=array(), $includeContainer = true, $addBrackets = false)
{
return $this->formatPrecision($price, 2, $options, $includeContainer, $addBrackets);
}
on line no 194
on line no 194
change this code to:-
public function format($price, $options=array(), $includeContainer = true, $addBrackets = false)
{
return $this->formatPrecision($price, 0, $options, $includeContainer, $addBrackets);
}
magento how to add new attribute for all product manualy by php code
magento how to add new attribute for all product manualy by php code
this below link given by Raghuvendera this is really help full
http://www.webcenter.co.in/how-to-add-custom-fields-for-order-line-items-in-magento
this below link given by Raghuvendera this is really help full
http://www.webcenter.co.in/how-to-add-custom-fields-for-order-line-items-in-magento
How to add custom fields for Order Line Items with price in magento
Work Flow to add custom Field to Order line Item
Use this url to add to cart: Ex: http://192.168.1.9/sspc_test/SSPC1900/checkout/cart/add/?product=196&qty=2&training_location=California
1. checkout_cart_item_default.phtml:::
Add the following below product name
<dl class=”item-options Kiran” id=”checkout_cart_item_default”>
<dt>Training Location</dt>
<dd><?php echo $_item->getTrainingLocation(); ?></dd>
</dl>
2. Table: sales_flat_quote_item
Add field: training_location
3. Product Detailed Page: Add training_location text field as input
4. Code -> Core -> Mage -> Sales -> Model -> Quote.php
Find: public function addItem(Mage_Sales_Model_Quote_Item $item)
Add: $item->setTrainingLocation($_REQUEST['training_location']);
Befoe: $item->setQuote($this);
—————
5. Table: sales_flat_order_item
Add field: training_location
6. XML: code_core_mage_sales_etc_config.xml
ADD: <training_location><to_order_item>*</to_order_item></training_location>
Between: <sales_convert_quote_item> and </sales_convert_quote_item>
Also Add:
<training_location><to_quote_item>*</to_quote_item><to_invoice_item>*</to_invoice_item><to_shipment_item>*</to_shipment_item><to_cm_item>*</to_
cm_item></training_location>
Between: <sales_convert_order_item> and </sales_convert_order_item>
—— Show The Info In Various Locations ——
To show in admin orders area
7. app_design_adminHTML_default_default_template_sales_order_view_items_renderer_default.phtml
Add:
<?php if($_item->getTrainingLocation()): ?>
<?php echo “<strong>Training Location:</strong> “.$_item->getTrainingLocation(); ?>
<?php endif; ?>
Below: <?php echo $this->getColumnHtml($_item, ‘name’) ?>
8. To Show in Checkout/Order review Page
frontend_template_checkout_onepage_review_item.phtml
Add: <?php if ($_item->getTrainingLocation()):?>
<dl class=”item-options Kiran” id=”checkout_cart_item_default”>
<dt>Training Location</dt>
<dd><?php echo $_item->getTrainingLocation(); ?></dd>
</dl>
<?php endif; ?>
Below: <h3 class=”product-name”><?php echo $this->htmlEscape($this->getProductName()) ?></h3>
9. To show in Myorders view page
frontend_template_sales_order_items_renderer_default.phtml
Add: <?php if ($_item->getTrainingLocation()):?>
<dl class=”item-options Kiran” id=”checkout_cart_item_default”>
<dt>Training Location</dt>
<dd><?php echo $_item->getTrainingLocation(); ?></dd>
</dl>
<?php endif; ?>
Below: <h3 class=”product-name”><?php echo $this->htmlEscape($_item->getName()) ?></h3>
10.
######################################
Usefull Links:
http://www.magentocommerce.com/boards/viewthread/19344/
http://magentocoder.jigneshpatel.co.in/add-to-cart-with-custom-attributes-values/
Use like below in product view page
<input type=”text”title=”Qty” value=”My Test Location” maxlength=”12″ id=”training_location” name=”training_location”>
please let me know how can i add also price with this attribute thanx advance
Use this url to add to cart: Ex: http://192.168.1.9/sspc_test/SSPC1900/checkout/cart/add/?product=196&qty=2&training_location=California
1. checkout_cart_item_default.phtml:::
Add the following below product name
<dl class=”item-options Kiran” id=”checkout_cart_item_default”>
<dt>Training Location</dt>
<dd><?php echo $_item->getTrainingLocation(); ?></dd>
</dl>
2. Table: sales_flat_quote_item
Add field: training_location
3. Product Detailed Page: Add training_location text field as input
4. Code -> Core -> Mage -> Sales -> Model -> Quote.php
Find: public function addItem(Mage_Sales_Model_Quote_Item $item)
Add: $item->setTrainingLocation($_REQUEST['training_location']);
Befoe: $item->setQuote($this);
—————
5. Table: sales_flat_order_item
Add field: training_location
6. XML: code_core_mage_sales_etc_config.xml
ADD: <training_location><to_order_item>*</to_order_item></training_location>
Between: <sales_convert_quote_item> and </sales_convert_quote_item>
Also Add:
<training_location><to_quote_item>*</to_quote_item><to_invoice_item>*</to_invoice_item><to_shipment_item>*</to_shipment_item><to_cm_item>*</to_
cm_item></training_location>
Between: <sales_convert_order_item> and </sales_convert_order_item>
—— Show The Info In Various Locations ——
To show in admin orders area
7. app_design_adminHTML_default_default_template_sales_order_view_items_renderer_default.phtml
Add:
<?php if($_item->getTrainingLocation()): ?>
<?php echo “<strong>Training Location:</strong> “.$_item->getTrainingLocation(); ?>
<?php endif; ?>
Below: <?php echo $this->getColumnHtml($_item, ‘name’) ?>
8. To Show in Checkout/Order review Page
frontend_template_checkout_onepage_review_item.phtml
Add: <?php if ($_item->getTrainingLocation()):?>
<dl class=”item-options Kiran” id=”checkout_cart_item_default”>
<dt>Training Location</dt>
<dd><?php echo $_item->getTrainingLocation(); ?></dd>
</dl>
<?php endif; ?>
Below: <h3 class=”product-name”><?php echo $this->htmlEscape($this->getProductName()) ?></h3>
9. To show in Myorders view page
frontend_template_sales_order_items_renderer_default.phtml
Add: <?php if ($_item->getTrainingLocation()):?>
<dl class=”item-options Kiran” id=”checkout_cart_item_default”>
<dt>Training Location</dt>
<dd><?php echo $_item->getTrainingLocation(); ?></dd>
</dl>
<?php endif; ?>
Below: <h3 class=”product-name”><?php echo $this->htmlEscape($_item->getName()) ?></h3>
10.
######################################
Usefull Links:
http://www.magentocommerce.com/boards/viewthread/19344/
http://magentocoder.jigneshpatel.co.in/add-to-cart-with-custom-attributes-values/
Use like below in product view page
<input type=”text”title=”Qty” value=”My Test Location” maxlength=”12″ id=”training_location” name=”training_location”>
please let me know how can i add also price with this attribute thanx advance
magento order viedw how to add new filster coloume ?
magento order viedw how to add new filster coloume ?
how to add new filter magento admin order filter by country
magento admin order filter by country
please give me php code for magento
C:\xampp\htdocs\m\app\code\local\Pkmodule\Reward\Block\Adminhtml\Reward\Grid.php
please give me php code for magento
C:\xampp\htdocs\m\app\code\local\Pkmodule\Reward\Block\Adminhtml\Reward\Grid.php
magen i add new $this->addColumn for filter but value not showing ?
How do i call .phtml block at specfic page in magento?
below code for simple cms page
{{block type='core/template' name='Test' template='goodtest/test.phtml'}}
and this below code is for php file
How do i call .phtml block at specfic page in magento?
below code for simple cms page
{{block type='core/template' name='Test' template='goodtest/test.phtml'}}
and this below code is for
How do i call .phtml block at specfic page in magento?
below code for simple cms page
{{block type='core/template' name='Test' template='goodtest/test.phtml'}}
and this below code is for php file
<?php
echo $this->getLayout()->createBlock('core/template')->setTemplate('goodtest/test.phtml')->toHtml();
?>
magento insert and update and delet and all querys
It is very easy to select, insert, delete and update the record in
magento site. following functions are helpful in magento site for
database queries. You can also use this function outside magento
environment with the help pf include “Mage.php” file form “app” folder
like.
This is very simple to get data from database of magento site to frontend of magento site or another sites
Select query to get the value form table
insert query
update query
delete query
This is very simple to get data from database of magento site to frontend of magento site or another sites
-
require_once '../../app/Mage.php';
-
Mage::app('default');
-
$connection = Mage::getSingleton('core/resource')
-
->getConnection('core_read');
-
$select = $connection->select()
-
->from('tablename', array('*')) // select * from tablename or use array('id','name') selected values
-
->where('id=?',1) // where id =1
-
->group('name'); // group by name
-
$rowsArray = $connection->fetchAll($select); // return all rows
-
$rowArray =$connection->fetchRow($select); //return row
-
$connection = Mage::getSingleton('core/resource')
-
->getConnection('core_write');
-
$connection->beginTransaction();
-
$fields = array();
-
$fields['name']= 'test';
-
$fields['age']='25';
-
$connection->insert('tablename', $fields);
-
$connection->commit();
-
$connection = Mage::getSingleton('core/resource')
-
->getConnection('core_write');
-
$connection->beginTransaction();
-
$fields = array();
-
$fields['name'] = 'jony';
-
$where = $connection->quoteInto('id =?', '1');
-
$connection->update('tablename', $fields, $where);
-
$connection->commit();
-
$condition = array($connection->quoteInto('id=?', '1'));
-
$connection->delete('tablename', $condition);
magento file uploading error http error
i analyses that media folder should me right-able i mean permission should be 7777
and other think is .htaccess permission
############################################
## adjust memory limit
# php_value memory_limit 64M
php_value memory_limit 256M
php_value max_execution_time 18000
###############R A V I ###################
#php_value upload_max_filesize 712M
php_value post_max_size 712M
php_value upload_max_filesize 712M
php_value max_execution_time 2000
php_value max_input_time 2000
php_value memory_limit 512M
###############P U N I T ###################
and other think is .htaccess permission
############################################
## adjust memory limit
# php_value memory_limit 64M
php_value memory_limit 256M
php_value max_execution_time 18000
###############R A V I ###################
#php_value upload_max_filesize 712M
php_value post_max_size 712M
php_value upload_max_filesize 712M
php_value max_execution_time 2000
php_value max_input_time 2000
php_value memory_limit 512M
###############P U N I T ###################
Phone SMS: Hasna jamara kisi ko gawara nahi hota,Har musafir ...
Phone SMS: Hasna jamara kisi ko gawara nahi hota,Har musafir ...: Hasna jamara kisi ko gawara nahi hota, Har musafir zindagi ka sahara nahi hota, Milte hain bahot insaan is tanha is zindagi mein, ...
Phone SMS: Milta nahi hai pyaar aasani se zindagi me,Mera nas...
Phone SMS: Milta nahi hai pyaar aasani se zindagi me,Mera nas...: Milta nahi hai pyaar aasani se zindagi me, Mera nasib bhi kabhi khola tha khuda ne, Par ab to dil mein Patjhad hi hain, Fir bhi a...
Subscribe to:
Posts (Atom)
How to check if Magento is running in production mode or developer mode
If you want to know. your Magento 2 website is running on which environment you can run below command on terminal and very easily you can kn...
Popular Posts
-
How to load external es6 script module in Magento 2 Ecommerce To add a script with type="module" in Magento, you can follow the a...
-
Introduction: When working with databases, it's often essential to track the timestamp of various operations such as record creation o...
-
Introduction: In Magento 2, the db_schema.xml file plays a crucial role in defining the database structure for your module. One common req...