我有这个文件:
<link src="http://mysite.com/theme/skin/frontend/default/beckin/css/options.css.php" rel="stylesheet" type="text/css">
Run Code Online (Sandbox Code Playgroud)
哪个在源代码中显示.此外,当我点击源代码中的链接时,它会显示应该的css.但是,浏览器未使用此文件,并且它不会显示在Firefox检查器中.
我该怎么做让浏览器使用这个css文件?
顺便说一句:这是一个自定义扩展,允许您更改主题颜色.再次,该文件正常工作,但浏览器忽略它?
谢谢!
我在这里发布了这个b/c我认为一个好的php和css专家可能知道答案.
我在我的共享托管服务器上安装了Magento.我在magento管理面板中进行了所有必要的更改.所有的网址都很好.但唯一的问题是我可以使用以下方式访问商店中的产品:
http://mydomain.com/category/product.html以及http://mydomain.com/index.php/category/product.html
所以我想知道如何摆脱index.php.我想将由index.php组成的url重定向到没有index.php的url
在发布之前我检查了magento论坛,并在stackoverflow上搜索但没有成功.
我设法得到了我想要显示的字段,但是我无法提取数据,例如SKU数据应来自目录>管理产品.
使用的Magento版本是1.5.1.0

基本上我需要从同一个类中的'customer/customer_collection'和'sales/order_grid_collection'中提取数据,这可能吗?
我有一个用于创建订单的脚本,与客户客户(请参阅下面的代码).此脚本工作正常但不会减少创建的订单中的产品集库存.
任何解释或解决方案?
谢谢
private $_storeId = '1';
public function create($customerInfos, $orderInfos, $itemsInfos) {
$quote = Mage::getModel ( 'sales/quote' );
// adding guest customer
$quote->setIsMultiShipping ( false );
$quote->setCheckoutMethod ( 'guest' );
$quote->setCustomerId ( null );
$quote->setCustomerEmail ( $customerInfos ['email'] );
$quote->setCustomerIsGuest ( true );
$quote->setCustomerGroupId ( Mage_Customer_Model_Group::NOT_LOGGED_IN_ID );
$quote->setStoreId ( $this->_storeId );
// adding addresses
$quote->getBillingAddress ()->addData ( $customerInfos ['address'] );
$quote->getBillingAddress ()->implodeStreetAddress ();
$quote->getShippingAddress ()->addData ( $customerInfos ['address'] );
$quote->getShippingAddress ()->implodeStreetAddress ();
$shippingCost = 0;
foreach ( $itemsInfos as …Run Code Online (Sandbox Code Playgroud) Tyring创建一个模块,我可以使用catalog-> products模型动态创建产品,并将控制重定向到产品的评论页面.只需单个控制器即可完成单一操作.没有块,助手,模板....没有必要.
但似乎控制器操作没有正确路由,代码或配置中存在一些错误......找不到404错误
试试这个网址:
http://localhost/magento_test/dynamicproduct/index/index
Run Code Online (Sandbox Code Playgroud)
命名空间:Waqasalieee
模块名称:Dynamicproduct
Magento版本: 1.7.0.2
这是文件内容:
本地/ Waqasalieee/Dynamicproduct /控制器/ IndexController.php
<?php
class Waqasalieee_Dynamicproduct_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction() {
die('working in index');
}
}
?>
Run Code Online (Sandbox Code Playgroud)
本地/ Waqasalieee/Dynamicproduct的/ etc/config.xml中
<?xml version="1.0"?>
<config>
<modules>
<Waqasalieee_Dynamicproduct>
<version>1.0</version>
</Waqasalieee_Dynamicproduct>
</modules>
<frontend>
<routers>
<dynamicproduct>
<use>standard</use>
<args>
<module>Waqasalieee_Dynamicproduct</module>
<frontName>dynamicproduct</frontName>
</args>
</dynamicproduct>
</routers>
</frontend>
</config>
Run Code Online (Sandbox Code Playgroud)
应用程序的/ etc /模块/ Waqasalieee_Dynamicproduct.xml
<?xml version='1.0'?>
<config>
<modules>
<Waqasalieee_Dynamicproduct>
<codepool>local</codepool>
<active>true</active>
</Waqasalieee_Dynamicproduct>
</modules>
</config>
Run Code Online (Sandbox Code Playgroud)
它应该显示一些错误或'在索引中工作'(字符串)但它给出404找不到错误.
我正在使用firefox的“ rest client”插件将以下标头信息传递给URL“ localhost / magento / api / rest / customers ”,
我正在传递以下标头信息:
Consumer key :olnnqgwm7gm75rtbft8w1wac4kp4vwig
Consumer secret:u9v6bdlpuopdlryc6vx0yjnslkj4vllo
Access token : null
Access token secret : null
Run Code Online (Sandbox Code Playgroud)
我会给出以下回应:
<magento_api>
<messages>
<error>
<data_item>
<code>401</code>
<message>
oauth_problem=parameter_absent&oauth_parameters_absent=oauth_token
</message>
</data_item>
</error>
</messages>
</magento_api>
Run Code Online (Sandbox Code Playgroud)
所以在这里我想获取Access令牌和Access令牌秘密如何获取它?
我的类别产品页面具有以下布局:左侧边栏为2列.
当我设置我的类别图像时,它只在1列(类别页面)中上升.
如何使类别图像位于列,类别页面和侧边栏之上?
我想限制对未登录用户访问Magento中的特定静态页面.有没有人有办法解决吗.我看了一些扩展(http://www.magentocommerce.com/magento-connect/MageParts/extension/3842/restrict_cms_pages和http://www.magentocommerce.com/magento-connect/advanced-permissions.html),但是我真正需要的是更简单.有什么建议吗?谢谢
我正在使用Magento 1.7(最新版本),我只想从顶部导航链接中删除"Checkout"链接.
我试过了
<remove name="checkout_cart_link" />
Run Code Online (Sandbox Code Playgroud)
但它也删除了购物车链接,我不想删除.
你们可以分享一下Magmi的优点和缺点吗?
我正在评估我们的Magento 1.12实现,因为我们经常更新feed,所以feed包含大量数据.
谢谢.
magento ×10
php ×5
magento-1.7 ×3
.htaccess ×1
css ×1
magento-1.6 ×1
magmi ×1
mod-rewrite ×1
stock ×1