catalog

How to resize the categories images in Magento?

匿名 (未验证) 提交于 2019-12-03 01:22:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How to resize the categories images in Magento? I used the following code to resize product images, but I'm not able to use it for showing categories images: $this -> helper ( 'catalog/image' )-> init ( $_product , 'small_image' )-> resize ( 170 ); 回答1: If I am not mistaken, it should be : init ( $_product , 'small_image' )-> resize ( 100 , 100 ); // single parameter work with 'image' init ( $_product , 'image' )-> resize ( 100 ); // How about this $this -> helper ( 'catalog/image' )-> init ( $this -> getProduct (), 'thumbnail' ,

Magento : Special price not displaying in the product page

匿名 (未验证) 提交于 2019-12-03 01:22:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I applied the special price rule to all products in the store. Once everything is over the special is displaying in all the pages except the product page(Which displays full product information). I'm using custom theme. Is there any problem with my custom theme? 回答1: Probably is a problem with your custom theme. Try to go back to the default theme, and see if it appears. If it doesn't appear, then is a more complex problem. If it does, then go to your app/design/{package}/{theme}/template/catalog/product/price.phtml and search for

Launch Image not showing up in iOS application (using Images.xcassets)

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having some trouble getting my launch image to show up in my application. I have created all the static image files in the Images.xcassets file in an asset set called "LaunchImage". I noticed that my project also contains a LaunchScreen.xib file (which was automatically created by Xcode). This .xib file appears when I run the application on my iPhone6 device. It doesn't appear in the simulator for iPhone4s (which makes sense, since xib launch screen is only for iOS 8 +). I want to use the static images that I have created since they fall

Magento - Sort by Date Added

匿名 (未验证) 提交于 2019-12-03 01:13:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I make Magento sort products in the catalog by the date they were added? This isn't an option in the admin so guessing it needs to be done in the code somewhere. Thanks. 回答1: It is quite easy to add a sorting by date option if you're OK (you shouldn't be) with modifying core files. Simply modify app/code/core/Mage/Catalog/Model/Config.php file as in example below: public function getAttributeUsedForSortByArray() { $options = array( 'position' => Mage::helper('catalog')->__('Position'), // HERE IS OUR NEW OPTION 'created_at' => Mage:

ConnectionString property not printing connection string

匿名 (未验证) 提交于 2019-12-03 01:13:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to get the connection string of a database datasource with the following script: $Analysis_Server = New-Object Microsoft.AnalysisServices.Server $Analysis_Server.connect("$server") $database = $Analysis_Server.Databases[7] $c = $database.DataSources[0].ConnectionString $c nothing is outputting. I have tried debugging like so: $Analysis_Server.Databases this prints out all databases on the server if i index it $Analysis_Server.Databases[] , it prints whatever database is indexed (so in my case, 7, prints database8) clearly the

Install Maven Archetype

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have created a Maven archetype from an existing project. I have even installed the archetype in my local repository and used it to create a new project. Everything went perfect (incredible). The thing is that I want to distribute this archetype so anybody can install it in his local machine or even deploy to a maven repo in order to use it. I was thinking about distributing the generated the artifact JAR, not the source of my project, and let people install it but it seems like it doesn't install as an archetype or at least it isn't

The folder “Images.xcassets” doesn't exist

匿名 (未验证) 提交于 2019-12-03 00:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I open the project file in the latest xcode version, I get the error "The folder "Images.xcassets" doesn't exist" in two popups. I have to click OK multiple times to make the popups disappear. I haven't done anything to remove such folders. Does anyone have an idea why I might be getting them? Update: I see it in finder and in my project explorer too. The problem still persists. 回答1: You have probably set your launch images to be extracted from an asset catalog (which is 'images.xcassets' by default). If you don't want to use asset

Hibernate 4 -> 5 migration: NamingStrategy changes, Tables not found

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: What i want to do I'm trying to migrate from WildFly 8.2.0 to WildFly 10.0.0 which means that i have (and want) to migrate from Hibernate 4.3 to Hibernate 5.0. Setup Java 8u40 Spring 4.1.9 SQL Server 2012 Wildfly 8.2.0 -> Wildfly 10.0.0 Hibernate 4.3.6 -> Hibernate 5.0.7 I have read the migration guide and i'm hit by the Naming Strategy changes. I have read many questions about this on SO, but mine seems a bit different. Hibernate complains that tables are not found: INFO [o.h.Version] HHH000412: Hibernate Core {5.0.7.Final} INFO [o.h.cfg

MGT 201 - Quantitative Analysis

匿名 (未验证) 提交于 2019-12-03 00:17:01
MGT 201 - Quantitative Analysis Homework 4 1. You are trying to develop a strategy for investing in two different stocks. The anticipated annual return for a $1,000 investment in each stock under four different economic conditions has the following probability distribution: Returns Probability Economic Condition Stock X Stock Y 0.1 Recession -50 -100 0.3 Slow growth 20 50 0.4 Moderate growth 100 130 0.2 Fast growth 150 200 Compute the (a) expected return for stock X and for stock Y. (b) standard deviation for stock X and for stock Y. (c) covariance of stock X and stock Y. (d) Would you invest

SQL操作Spark SQL--CatalogApiTest

匿名 (未验证) 提交于 2019-12-02 23:59:01
object CatalogApiTest { def main ( args : Array [ String ]): Unit = { val spark = SparkSession . builder () . appName ( "CatalogApiTest" ) . getOrCreate () //查看spark sql应用用的是哪一种catalog //目前支持hive metastore 和in-memory两种 //spark-shell默认的值为hive //spark-shell --master spark://master:7077 --conf spark.sql.catalogImplementation=in-memory spark . conf . get ( "spark.sql.catalogImplementation" ) //1:数据库元数据信息 spark . catalog . listDatabases (). show ( false ) spark . catalog . currentDatabase val db = spark . catalog . getDatabase ( "default" ) spark . catalog . databaseExists ( "twq" ) spark . sql (