w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Product image display in product list and featured product page, but not display in detail page of magento
Have you marked Radio button for product image as Base Image in Administration area on live site? This radio button causes to display the product image on Product detail Page. please check.

Categories : PHP

Display product list from same selected subcategory for this product on product detail page
To get all subcategories of a category: $children = Mage::getModel('catalog/category')->getCategories(50); $searchInCategories = ''; foreach ($children as $category) { //Add , after every id if (strlen($searchInCategories) > 0) $searchInCategories .= ','; $searchInCategories .= $category->getId(); } Where 50 is a category id, in your case this would be PODS id. Now you need to alter the search query for your products: ->addAttributeToFilter('category_id', array('in' => array('finset' => $searchInCategories)))

Categories : PHP

make configurable product options independent on product view page --Magento
Configurable Products in Magneto are only parent products of Simple Products. Whatever you have as an attribute of a Configurable - a Simple Product has to be present for each. To do this out of the box in Magento, you should be looking into setting up a Simple Product with Custom Options.

Categories : Magento

How do I add product short description on the product list template page on Magento?
You can use in the list.phtml file this. $_product->getShortDescription(); but Magento does not load all the attributes on the product listing page. Go to the admin pannel Catalog->Attributes-> Manage Attributes and edit the short description attribute. Set “Used in product listing” to “Yes”. Save and clear the cache.

Categories : Magento

Magento Product View Page: Add Layout Changes Depending on Product Search or Category Browsing
There's unfortunately no way to track referring pages in Magento's layout XML, but you can tell if someone came to the product page from a search by checking $_SERVER['HTTP_REFERER']. If a user comes to a product page from a search, the referring url will look like this: /catalogsearch/result/?q=[SEARCH TERM].

Categories : PHP

how to get category name of current product (on product detail page) in magento
It's because products can be attached to multiple categories. In your situation, when you visit a product page referred from a category page, your session has category information. But if you visit directly product page, Magento can not know which category you came from, so it can not show you a specific category, because your product can have multiple categories. But in your situation, if your products are attached only one category, you can use this code, it shows first category name of product; $categoryIds = $_product->getCategoryIds(); if(count($categoryIds) ){ $firstCategoryId = $categoryIds[0]; $_category = Mage::getModel('catalog/category')->load($firstCategoryId); echo $_category->getName(); }

Categories : PHP

Product image not displaying in product page(view.phtml)
You could replace view.phtml with your original file, which could could copy from the base template into your custom template app/design/frontend/base/default/template/catalog/product/view.phtml to app/design/frontend/[yournamespace]/[yourtheme]/template/catalog/product/view.phtml You may also need to delete any layout xml files installed by the module, incase it has made changes to the layout of the view page app/design/frontend/default/default/layout/[moduleslayout].xml

Categories : Image

When access image file throgh url it redirects to page not found page in drupal6
It might be caused by the pathauto module.In Administer › Site building › URL aliases you can find the automated alias settings tab.Under that go to the general settings area.You might have set character case set to change to lowercase.Hope that might be your problem.. :)

Categories : Htaccess

Hide product title and categories on product page
Simplest Solution is go to woocommerce plugin /templates/single-product/title.php and remove content of this file. Same process can be done by removing content of meta file in same directory.

Categories : Wordpress

How to make product name link to product page in magento
You should be able to link with the productURL $productName = $product->getName(); $productURL = $product->getProductUrl(); echo '<tr>'; echo "<td width='15%'>{$releaseDate}</td>"; echo "<td width='85%'><a href='{$productURL}'>{$productName}</a></td>";

Categories : PHP

Page redirects to the previous page during jquery Ajax call
You never tell the browser to halt processing, you simply bind: onclick="get_marker()" You either need to add return false; after the get_marker() or change it to return get_marker() and have that method return false. Otherwise jquery mobile is going to come in and process the click after you're done. also, FWIW, using iPhone emulator I get "Error" and "0" in two alerts, then continues on to history.go(-1).

Categories : Jquery

How to display only order total in paypal checkout page as like ebay do
I dont't know how they do that but i know that, Owner of paypal is eBay Inc. You can display your company logo by just putting one more hidden field value="http://fedoraproject.org/w/uploads/e/e2/Fedora-infinity-logo-64-64.png">

Categories : Paypal

How we can show one product from each subcategory in product page
As you already know main category, you can: 1) SELECT category_id FROM category WHERE parent_id = {A.category_id} 2) Loop all categories from above with category_id: SELECT p.* FROM product p LEFT JOIN product_to_category ptc ON ptc.product_id = p.id WHERE ptc.category_id = category_id ORDER BY p.product_id ASC LIMIT 1 It's not tested queries. Modify them by your needs.

Categories : PHP

mod_rewrite redirects only index page
Ok replace your code with this: Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} robots.txt$ [NC] RewriteRule ^([^/]+) $1 [L] RewriteCond %{HTTP_HOST} ^(www.)?bd-spb.ru$ [NC] RewriteRule ^(.*)$ http://xn----8sbbkdenhe5aqs7a.xn--p1ai/$1 [R=301,L,B]

Categories : Regex

PHP search engine redirects to another page
header("Location: details.php?id=$id"); BTW, my search engine is called "search.php" and the form is pointing to "search-go.php". This is wrong. It have to be the same "search.php"

Categories : PHP

login page automatically redirects to else case
You're not returning from the method, but continuing to iterate through the while loop. You seem to expect that a simple method call response.sendRedirect() magically aborts the whole while loop and returns from the method. It doesn't do that. The code just continues the loop, checking the next user and setting the redirect URL, hereby overriding the previous one. You need to return from the method yourself. response.sendRedirect(someURL); return; Your concrete problem is caused because your login doesn't match the last user entry in the DB. Unrelated to the concrete problem, this approach is however terribly inefficient. You're not taking benefit of the powers of a relational database and instead copying the entire DB table into Java's memory and performing the comparison in Java.

Categories : Validation

Javascript Onload Prompt where yes redirects to page
You may use confirm to do so. But instead of Yes/No, it displays Ok/Cancel. MDN Documentation on window.confirm

Categories : Javascript

Changing url with RewriteRule does not replace the url and redirects my page
Try this code: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s/+(store)/index.php?categ=([^s]+) [NC] RewriteRule ^ /%1/%2? [R=302,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^store/(.+?)/?$ /store/index.php?categ=$1 [L,QSA,NC] Once you verify it is working fine, replace R=302 to R=301. Avoid using R=301 (Permanent Redirect) while testing your mod_rewrite rules.

Categories : PHP

Wordpress: Cannot login in after upgrade - redirects to blank page
Rename the active theme and force a revert to twentytwelve. Theme issues can still sometimes cause admin errors. But once the theme reverts, you should be able to get into admin, even if the front end is white-screened. To figure out what's causing the white screen on the front end (or, if needed, the backend, too) use Debug. See https://codex.wordpress.org/WP_DEBUG Add to wp-config.php: define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); and the debug.log file will be in wp-content. And/or, add this line define( 'WP_DEBUG_DISPLAY', true); to dump them to the browser, too.

Categories : Wordpress

Django Social Auth redirects to error page
Nothing is your settings is standing out as being incorrect. I remember having similar issues getting Facebook and django-social-auth to play nicely together when I first implemented it. The problem ended up not being with Django or django-social-auth, but rather with how my app was configured on Facebook's end. If this is a problem you are only experiencing in a test environment (localhost), then try reading this post and see if it helps resolve your issue; the culprit may be that the Site URL on Facebook is set to localhost (which Facebook does not support).

Categories : Django

Urldecode bug: after adding a simple product to shopping cart on search page and redirect to current page
In this fle appcodecoreMageCoreHelperAbstract.php public function escapeUrl($data) this function is responsible for weird url. It use htmlspecialchars function of php whic replace & with '&amp;' see here http://php.net/manual/en/function.htmlspecialchars.php So what I do is comment this line $this->getResponse()->setRedirect($returnUrl); in my CartController _goBack method insrtead of I used my custom redirect method.

Categories : Magento

problems in virtumart cart page and product description page
Like Shairya said, modules depend on the item ID to determine if they need to display or not. If a page in Joomla does not have a corresponding menu item, then it will inherit the item ID from the page that linked to it. You can do a couple of things to fix your issue. First, you can make a new menu and create a menu item for the VM cart. You don't have to put the menu in a module, it does not need to display for it to work. You can also install Advanced Module Manager and use the Display on Home Page filter for the slideshow. AMM will not display modules on a page that inherits the home page item ID if you use this filter.

Categories : Joomla

'window.location.replace' redirects to the given page but destroies the session from php (Chrome only)?
Don't use .replace() for this, just assign the value directly. This is fix: window.location = "http://localhost/Underground/01.InProgress/ES-dictionary/public/index.php";

Categories : PHP

Application redirects to "cart" page after removing "Delivery" Step in Spree 2.0.0?
I found a solution it is a known issue. Check it on github https://github.com/huoxito/spree/commit/505e256967f1ae79fee61e2dc2eca8ad91cdd9cf Here is the solution. Step 1: Override Spree checkout_controller "before_payment" method by creating a decorator file in app/controllers/spree/checkout_controller_decorator.rb Srep 2: Paste following code in it. Spree::CheckoutController.class_eval do def before_payment if @order.checkout_steps.include? "delivery" packages = @order.shipments.map { |s| s.to_package } @differentiator = Spree::Stock::Differentiator.new(@order, packages) @differentiator.missing.each do |variant, quantity| @order.contents.remove(variant, quantity) end end end end Thanks to Spree community.

Categories : Ruby On Rails

Wicket dropdown menu without form - click option redirects to another page
You can add an AjaxFormComponentUpdatingBehavior to your dropdown to cause the selection to trigger an action, such as page redirection. DropDownChoice projectLinksDropDown = new DropDownChoice("projectLinks", new Model(selectedProjectLink), projectLinkOptionList); projectLinksDropDown.add(new AjaxFormComponentUpdatingBehavior("onChange") { @Override protected void onUpdate(AjaxRequestTarget target) { selectedProjectLink = (ProjectLink) getFormComponent().getConvertedInput(); setResponsePage(selectedProjectLink.getRedirectPage()); } } this.add(projectLinksDropDown); The cool thing with the AjaxFormComponentUpdatingBehavior that I am not taking advantage of in my example above is that you can do partial page refresh to hide/show/update panels without having to

Categories : Java

spring security redirects to last requested page after login session timeout
Add the always-use-default-target attribute to your form-login tag. <form-login always-use-default-target="true" /> If set to true, the user will always start at the value given by default-target-url, regardless of how they arrived at the login page. Maps to the alwaysUseDefaultTargetUrl property of UsernamePasswordAuthenticationFilter. Default value is false.

Categories : Spring

Getting HtmlUnit to list all of the elements including redirects requested after page load
You can inherit from WebConnectionWrapper class like: public class WebConnectionFilter:WebConnectionWrapper { public override WebResponse getResponse(WebRequestSettings settings) { String currentRequestUrl = settings.getUrl(); // Do whatever you want with URL return base.getResponse(settings); } } Then you can use this class like: WebClient client = getNewClient(); client.setWebConnection(new WebConnectionFilter(client)); Now any request out of WebClient passes through getResponse method PS: I'm not using the latest version of HtmlUnit, so the name of WebConnectionWrapper class may be changed in newer versions.

Categories : Java

How to assign simple product with custom options to configurable product & display it along with Configuralbe product
you can add custom option in simple product type go to your admin, click on manage product find 'Custom Options' from 'Product Information' Tab, set you custom option I think it will help you

Categories : Magento

MAGENTO PRODUCT: Product Page got errror in magento
you can try to add die in catalog/product/view.phtml with some message like here: die("here"); after a while, you will see which line is making a problem, which will be easier to track.

Categories : PHP

Magento module custom block working in product details page but not working in list and grid page?
Well, The xml code which you are using in the category page ( list page) is not correct. It should be like this : <catalog_category_default> <reference name="category.products"> <block type="test/test" name="test" as="other" template="test/test.phtml" > <block type="test/test" name="test_info" as="test_info" template="test/testinfo.phtml" /> </block> </reference></catalog_category_default> <catalog_category_layered> <reference name="category.products"> <block type="test/test" name="test" as="other" template="test/test.phtml" > <block type="test/test" name="test_info" as="test_info" template="test/testinfo.phtml" /> </block> </reference> </catalog_category_layered> Please try wi

Categories : PHP

magento jquery toggle not working in home page but working in product page
Open up your Chromium-Browser and your console https://developers.google.com/chrome-developer-tools/docs/console#opening_the_console Type jQuery into the console and press enter If you get: ReferenceError: jQuery is not defined then you have not included jQuery Post any errors you get in your console after refreshing the page...

Categories : Javascript

Opening a certain page using PHP?
You can create your link to open index.php with a paremeter: <a href="index.php?page=content_en">English</a> And in the content part load the file according to the parameter you sent: <?php if($_GET['page']=='content_en') { include('page-en.php'); } ?>

Categories : PHP

How can I add a new tab in product page in magento
Here is a good explanation about how to create additional tabs on product page : http://www.atwix.com/magento/adding-tabs-on-the-product-page/ To rename something on frontend, the easiest way is to set "Enabled for Frontend" in "System -> Configuration -> Advanced -> Developer -> Translate inline" to "yes" and then go to frontend and translate whatever you want, including tab names. PS: translate inline doesn't work in Chrome.

Categories : Magento

Opening Page with Express
Express evaluates middleware in the order in which they are configured. You have a static file handler before your app.router. Take the index.html file out of the __dirname + '/views' directory. You also have a static file handler at the bottom of your middleware stack. Static file handlers should be at the top of your middleware stack. When they're at the bottom of your middleware stack each request unnecessarily processes all of the stack. For example, you don't need to run express.bodyParser() when serving static files.

Categories : Node Js

Opening a specific page on first run
The custom UriMapper is exactly what you need. Here is the example. public class YourUriMapper : UriMapperBase { public override Uri MapUri(Uri uri) { if (uri.OriginalString == "/PageA.xaml") { if (AppSettings.FirstRun == true) { uri = new Uri("/PageB.xaml", UriKind.Relative); } else { uri = new Uri("/PageA.xaml", UriKind.Relative); } } return uri; } } where AppSettings is a user defined class to store application settings.

Categories : C#

search form that redirects to search results page, rails
You can do it like this: <%= form_tag "http://www.stackoverflow.com/questions", :method => 'get',:id => "products_search" do %> Put whatever you need in place of that URL. for more info please look at the form_tag helper documentation But if you need actually to be trough that path you were using, you have to use a redirect or a forwarding. For using a forwarding just call the name of the next action near the end of that action yuo are calling. Something like: def another_action ... end def product ... another_action end For using a redirect just do it like: def products redirect_to another_action end

Categories : Ruby On Rails

Magento New Product Page Layout
You need to change the layout or just the template If layout you have to update the handle If template create a new theme and add view.phtml in the theme in catalog/product/ folder respectively Assign the theme to be default theme. Do some investigation to get some more idea about theme and layout

Categories : Magento

I am trying to use GII feature in YII, but it gives me error when I am opening the gii page
Are you accessing gii using localhost? Are you able to access your local webserver using localhost? You cannot access your webserver by using localhost if you haven't mapped 127.0.0.1 to localhost which most of the times done by-default for you depending upon your system and the way you installed php / apache

Categories : PHP

Opening html page in spring MVC
<mvc:resources> may be what you are looking for. http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-config-static-resources Hope this helps.

Categories : Java

Scale and fade upon page opening
It's hard to understand the question. But maybe you are looking something like this: .insandoutslogoimg { width: 210px; height: 210px; position: fixed; top: 50%; left: 50%; margin-top: -112.5px; margin-left: -112.5px; animation: fadeInDown 2s ease; } @keyframes fadeInDown { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } CodePen demo You also need browser prefixes (CodePen uses Lea Verou -prefix-free)

Categories : HTML



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.