我想在首先点击system-> configuration时显示自定义模块配置.
我已为部分设置了最高排序顺序但仍未显示.
我的system.xml代码看起来像
<tabs>
<tourtab translate="label" module="customoptioncreater">
<label>Tour Option Configuration</label>
<sort_order>0</sort_order>
</tourtab>
</tabs>
<sections>
<toursection translate="label" module="customoptioncreater">
<label>Tour Option Configuration</label>
<tab>tourtab</tab>
<frontend_type>text</frontend_type>
<sort_order>99999</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
Run Code Online (Sandbox Code Playgroud)

我以编程方式创建客户但客户创建成功但无法使用frontend.issue登录是网站ID不会分配给客户我已经尝试过下面的代码
if ($detail->ContactEmail && $detail->ContactName != '' && filter_var($detail->ContactEmail, FILTER_VALIDATE_EMAIL)) {
$customer = Mage::getModel('customer/customer');
$customer->setWebsiteId(1);
$customer->loadByEmail($detail->ContactEmail);
/*
* Check if the email exist on the system.
* If YES, it will not create a user account.
*/
if (!$customer->getId()) {
//setting data such as email, firstname, lastname, and password
$customer->setEmail($detail->ContactEmail);
$name = preg_split('/\s+/', trim($detail->ContactName));
if (count($name) == 1) {
$customer->setFirstname($name[0]);
$customer->setLastname($name[0]);
} else {
$customer->setFirstname($name[0]);
$customer->setLastname($name[1]);
}
//$customer->setWebsiteId(array(1));
$customer->setcontactJobTitle($detail->ContactJobTitle);
$customer->setcontactSeqNo($detail->ContactSeqNo);
$customer->setdebtorAccNo($detail->DebtorAccNo);
$customer->setdebtorApiKey($debtorAPI);
$customer->setStoreId(Mage::app()->getStore('default')->getId());
$customer->setPassword($customer->generatePassword($passwordLength));
}
try {
//the save the …Run Code Online (Sandbox Code Playgroud) 如何在观察者中获得选定的自定义选项价格.我正在checkout_cart_product_add_after为观察者和观察者代码使用事件:
public function applyCartPriceChange(Varien_Event_Observer $observer)
{
$item = $observer->getQuoteItem();
$product = $item->getProduct();
$productOptions = $product->getTypeInstance(true)->getOrderOptions($product);
echo '<pre>';
print_r($productOptions);
foreach($productOptions['options'] as $key=>$value){
if($value['label'] !='Date'){
echo $value['option_id'];
}
}
exit;
if ($specialPrice > 0) {
$item->setCustomPrice($specialPrice);
$item->setOriginalCustomPrice($specialPrice);
$item->getProduct()->setIsSuperMode(true);
}
}
Run Code Online (Sandbox Code Playgroud)
我正在获取所有选定的自定义选项详细信息,但不使用此代码的价格,$productOptions = $product->getTypeInstance(true)->getOrderOptions($product);它打印数组如下:
Array
(
[info_buyRequest] => Array
(
[uenc] => aHR0cDovLzE5Mi4xNjguMS45My9sbWR0L2luZGV4LnBocC9kYXktdG91cnMvdGVzdDIuaHRtbA,,
[product] => 35
[form_key] => UnobrzsuAmTK6rJy
[related_product] =>
[options] => Array
(
[635] => Array
(
[date] => 12/19/2013
[date_internal] => 2013-12-19 00:00:00
)
[633] => …Run Code Online (Sandbox Code Playgroud) 如何在magento自定义模块表单上成功上传文件后显示上传的文件名或链接.我附上了截图以便清楚了解.请帮助