1 |
INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/static/sign', '0'); |
1 |
INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/static/sign', '0'); |
https://fanal-demo.stores.yahoo.net/
https://divitto-demo.stores.yahoo.net/
https://sambee-demo.stores.yahoo.net/
Running the theme manager and the variable guides to the themes can be found here
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<script> function getUrlVars() { var vars = {}; var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { vars[key] = value; }); return vars; } function getUrlParam(parameter, defaultvalue){ var urlparameter = defaultvalue; if(window.location.href.indexOf(parameter) > -1){ urlparameter = getUrlVars()[parameter]; } return urlparameter; } var cjevent = getUrlParam('cjevent',''); if(cjevent != ''){ sessionStorage.setItem('cjevent',cjevent) } </script> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<script> document.addEventListener('DOMContentLoaded', function(){ var cjparam = sessionStorage.getItem('cjevent'); var cjurl = 'https://www.emjcd.com/u?CID=YOURCID&TYPE=YOURTYPE&METHOD=IMG&CURRENCY=USD&AMOUNT={{ subtotal_price | money_without_currency }}&OID=PREPENDYOURORDERNUMBERSTARTHERE{{ order_number }}'; if(cjparam !== null){ cjurl += '&CJEVENT='+cjparam; } var cadd_img = document.createElement('img'); cadd_img.src = cjurl; cadd_img.style.width = '20px'; cadd_img.style.height = '1px'; document.getElementsByTagName("BODY")[0].appendChild(cadd_img); sessionStorage.removeItem('cjevent'); }, false); </script> |
FYI – Apparently since responsive checkout the liquid {{order_number}} is different from the order number in your admin panel. So, if your order number in your admin panel is 98777141384, the order number sent to commission junction might be 1384 (last 4 digits of full order number), so you will need to prepend 9877714 to the OID
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
app/code/community/Ess/M2ePro/Block/Adminhtml/Ebay/Listing/View/Ebay/Grid app/code/community/Ess/M2ePro/Block/Adminhtml/Ebay/Listing/Product protected function _prepareCollection(){ $collection->addAttributeToSelect('asset_type'); } protected function _prepareColumns(){ $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'asset_type'); $options = array(); foreach( $attribute->getSource()->getAllOptions(false, true) as $option ) { $options[$option['value']] = $option['label']; } $this->addColumn('asset_type',array( 'header'=> Mage::helper('M2ePro')->__('Dept.'), 'width' => '150px', 'index' => 'asset_type', 'type' => 'options', 'options' => $options, 'sortable' => false, )); $sets = Mage::getResourceModel('eav/entity_attribute_set_collection') ->setEntityTypeFilter(Mage::getModel('catalog/product')->getResource()->getTypeId()) ->load() ->toOptionHash(); $this->addColumn('set_name', array( 'header'=> Mage::helper('M2ePro')->__('Attrib. Set Name'), 'width' => '100px', 'index' => 'attribute_set_id', 'type' => 'options', 'options' => $sets, 'sortable' => false, ), 'name'); } |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
private function _getGeneralFromAttributeSets(array $attributeSetIds) { if (count($attributeSetIds) > 50) { throw new Ess_M2ePro_Model_Exception("Attribute sets must be less then 50"); } $attributeCollection = Mage::getResourceModel('catalog/product_attribute_collection') ->addVisibleFilter() ->setInAllAttributeSetsFilter($attributeSetIds) ->setOrder('frontend_label', Varien_Data_Collection_Db::SORT_ORDER_ASC); return $attributeCollection->getAllIds(); } |
1 2 3 4 5 6 7 8 9 10 11 12 |
private function _getGeneralFromAttributeSets(array $attributeSetIds) { if (count($attributeSetIds) > 500) { throw new Ess_M2ePro_Model_Exception("Attribute sets must be less then 500"); } $attributeCollection = Mage::getResourceModel('catalog/product_attribute_collection') ->addVisibleFilter() ->setOrder('frontend_label', Varien_Data_Collection_Db::SORT_ORDER_ASC); return $attributeCollection->getAllIds(); } |