我正在为ASP.Net MVC寻找一个成熟的购物车示例.我发现有很多链接指向MVC店面(1)(显然不再开发)和其他文章谈论Kona,一个基于MVC店面的独立项目.太糟糕了,MVC Store Preview 1A让我很开心.
有没有"生产就绪"的开源ASP.Net MVC购物车?
我们正在使用Storefront API开发过滤器功能。我们可以使用下面给出的运算符编写查询,以在父键(例如“ product_type”)中进行搜索,但找不到在子键中进行搜索的方法。
.products(第一个:10,查询:“ tag:blue AND product_type:sneaker”){$ 0 ...}
那么,谁能帮助我们搜索带有子键的子键,例如变体选择选项?
我们期望查询格式如下:.products(first:10,query:“ selectedProductVarient.option1:M”){$ 0 ...}
使用 Woocommerce 和我的 Storefront 子主题,我试图防止在单击单个产品图像时打开一个包含全尺寸图像的新页面的事实。
我希望图像不可点击,因此如果用户点击产品页面中的图像,则不会发生任何事情。
在我的子主题functions.php 中,以下代码可防止在灯箱中缩放和打开图像,但我想完全停用链接。
add_action( 'after_setup_theme', 'remove_hemen_theme_support', 100 );
function remove_hemen_theme_support() {
remove_theme_support( 'wc-product-gallery-zoom' );
remove_theme_support( 'wc-product-gallery-lightbox' );
}
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?
使用 WooCommerce 4.2,在 iOS 上,FlexSlider (v2.7.2) 显示一个带有水平滑块的错误:当用户向左或向右滑动时焦点位于滑块上时,垂直滚动仍处于活动状态,存在一定程度的垂直移动. 这使得滑块“反弹”。
您可以在此视频中看到错误:https : //youtu.be/bM8zcv3ciTo
编辑:我的问题类似于this one,但与Flexslider有关。
我在functions.php中有这个:
/*PRODUCT PAGE FlexSlider Options*/
add_filter( 'woocommerce_single_product_carousel_options', 'filter_single_product_carousel_options' );
function filter_single_product_carousel_options( $options ) {
if ( wp_is_mobile() ) {
$options['controlNav'] = true; // Option 'thumbnails' by default
$options['direction'] = "horizontal";
$options['slideshow'] = false; // Already "false" by default
}
return $options;
}
Run Code Online (Sandbox Code Playgroud)
知道如何在焦点位于 Flexslider 上时防止这种垂直滚动吗?
有人也有这个bug吗?
我安装了一个只有 Wordpress 和 WooCommerce 的测试站点,错误就在这里,所以它与插件无关:http : //woo.makemy.biz/produit/produit-de-test/
根据本地 Vue-storefront 的安装,我有一些疑问。\n我使用的是 Mac OS 10.13.4 和节点版本 8.11.5,npm 版本 5.6\n但是在构建 storefront npm 时,它返回一个错误。
\n\n [Error: Can't build storefront npm. \xe2\x94\x82\n\xe2\x94\x82 at Promise (/Volumes/Works/web/vue/vuestorefront/vue-storefront/core/scripts/installer.js:412:16) \xe2\x94\x82\n\xe2\x94\x82 at new Promise (<anonymous>) \xe2\x94\x82\n\xe2\x94\x82 at Storefront.npmBuild (/Volumes/Works/web/vue/vuestorefront/vue-storefront/core/scripts/installer.js:408:12) \xe2\x94\x82\n\xe2\x94\x82 at <anonymous> \xe2\x94\x82\n\xe2\x94\x82 \xe2\x94\x82\n\xe2\x94\x82 Please check log file for details: /Volumes/Works/web/vue/vuestorefront/vue-storefront/var/log/install.log][1] \n
Run Code Online (Sandbox Code Playgroud)\n\n为什么会出现这种情况?
\n我正在使用WordPress 4.3.1,Woocommerce 2.4.7和主题店面1.5.1.
我想更改标题中的"site-header-cart",它显示购物车的当前价格以及购物车中商品的数量,仅显示商品数量:
<span class="amount">463,33 €</span>
<span class="count">7 items</span>
Run Code Online (Sandbox Code Playgroud)
应该:
<span class="count">7</span>
Run Code Online (Sandbox Code Playgroud)
每当我对template-tags.php进行更改时,只会更改
<a class="cart-contents" ...>
...
</a>
Run Code Online (Sandbox Code Playgroud)
正在展示.每当我尝试更改href内部的内容时,将显示未更改的原件:
if ( ! function_exists( 'storefront_cart_link' ) ) {
function storefront_cart_link() {
?>
<a class="cart-contents" href="<?php echo esc_url( WC()->cart->get_cart_url() ); ?>" title="<?php _e( 'View your shopping cart', 'storefront' ); ?>">
<span class="count"><?php echo wp_kses_data( sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), 'storefront' ), WC()->cart->get_cart_contents_count() ) );?></span>
</a>
<?php
}
}
Run Code Online (Sandbox Code Playgroud)
怎么回事,谁能帮帮我?
我正在使用Wordpress的子主题,WooCommerce主题店面。
店面标头挂钩函数的订购方式如下:
<?php
/**
* Functions hooked into storefront_header action
*
* @hooked storefront_skip_links - 0
* @hooked storefront_social_icons - 10
* @hooked storefront_site_branding - 20
* @hooked storefront_secondary_navigation - 30
* @hooked storefront_product_search - 40
* @hooked storefront_primary_navigation_wrapper - 42
* @hooked storefront_primary_navigation - 50
* @hooked storefront_header_cart - 60
* @hooked storefront_primary_navigation_wrapper_close - 68
*/
do_action( 'storefront_header' ); ?>
Run Code Online (Sandbox Code Playgroud)
我想更改顺序,以便product_search
可以在之前secondary_navigation
。
我已经遍历了店面文件,无法找到设置此顺序的位置,只能找到单个项。
任何人都可以请我帮忙上钩或做些改变订单的事情吗?
首先我要说抱歉,这个标题有点模糊。更具体地说,标题应该是:
如何选择 woocommerce 店面主题(可能还有其他主题)产品档案页面(也称为商店页面)中的“添加到购物车”按钮的行为,以便将商品添加到购物车,然后保留在商店中页面,或重定向到购物车。
不过这个标题好长啊...
在我的店面子主题中,在结帐页面中,我尝试将优惠券代码块移至购物车总数上方和商品评论下方
我看到review-order.php
在正确的位置有以下钩子:
do_action( 'woocommerce_review_order_after_cart_contents' );
Run Code Online (Sandbox Code Playgroud)
所以在functions.php文件中,我添加了:
remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );
add_action( 'woocommerce_review_order_after_cart_contents', 'woocommerce_checkout_coupon_form' );
Run Code Online (Sandbox Code Playgroud)
但是,优惠券块出现了两次......并且在订单评论上方而不是下方。
互联网上的大多数文章都是关于如何删除/替换“查看产品”或“了解更多”按钮。
我找不到与允许两个按钮一起工作相关的内容。
我感兴趣的是让两个按钮并行工作(同时)。要显示的第一个按钮应该是“查看产品”(在同一页面上打开),然后在“添加到购物车”下方
目前,我的商店仅显示“添加到购物车”按钮。我正在使用店面主题(+自定义子主题)。
有人会这么好心告诉我该怎么做吗?
我正在寻找如何检查用户是否在 Shopware 6 店面中登录的正确方法。我正在编写一个插件(不是应用程序),并且想在控制器和/或订阅者中使用它。
我是不是该:
解决方案:
感谢@Uwe Kleinmann,我找到了一个解决方案,可以在这样的订阅者中工作:
public static function getSubscribedEvents()
{
return [
ProductPageLoadedEvent::class => 'onProductPageLoaded'
];
}
public function onProductPageLoaded(ProductPageLoadedEvent $event): void
{
$saleschannelContext = $event->getSaleschannelContext();
$customer = $saleschannelContext->getCustomer();
if(NULL === $customer) {
$customer = 'not-logged-in';
}
$event->getPage()->addExtension(
'myextension', new ArrayStruct([
'test' => $customer
])
);
}
Run Code Online (Sandbox Code Playgroud) 我有Magento设置来管理VPS上的7个不同的店面.每个店面都有一个独特的IP,当然它们共享同一个数据库,只有一些产品在某些网站上.大约一个星期前,其中一个店面变得非常缓慢.我说的是超过10次加载时间.奇怪的是,所有其他网站仍然在大约4秒内嗡嗡作响.但定期,他们的表现也将下滑.我的主人说他们没有对服务器做任何事情,他们纠正了一些问题,但即使他们也无法确定发生了什么.我减少了日志清理之间的时间(即使我认为不需要).我必须补充一点,我有超过100个静态页面,而且我们的htaccess相当大(215k)因为数量或重定向和阻塞的IP.我认为这是一个magento问题而不是服务器问题,但我无法弄清楚为什么它只是这一个店面.这有没有发生在其他人身上?或者有什么我可以忽略的?
storefront ×12
woocommerce ×7
wordpress ×6
php ×5
flexslider ×2
magento ×2
asp.net-mvc ×1
carousel ×1
checkout ×1
ios ×1
pagespeed ×1
shopify ×1
shopify-app ×1
shopware ×1
shopware6 ×1
vue.js ×1