Output catalog name on large product layout

Has anyone come across a way to output the catalog name on the large product layout?
The nearest I can see getting is using jQuery to parse the breadcrumbs or the url. Ideally I want to do this so I can make some css changes on the product page depending on which catalog it's in.
Any ideas?

Worked it out, this one's done using Javascript. Posting the solution here for anyone who needs it. In the example below, .main is my main div that I would like the classname applied to. This will take the second-last element of the url and apply it as a class to the my div with class .main. Note: there may be issues here if your urls have trailing slashes.
<script type="text/javascript">
var url = window.location.pathname;
    url = url.split("/");
    urlclass = url[url.length-2];
    $('.main').addClass(urlclass);
    </script>

Similar Messages

  • Once attribute price selected, updating the price on the large product layout?

    For my e-commerce site I need to setup, when a customer picks an attribute (such as 'Custom Artwork +£5.00') The price on the large product layout updates automatically before proceeding to the Shopping Cart for the price to update.
    Is this achievable?

    Hi Paul,
    In case you still in need, (assuming you are using the attribute to pass the information to the cart) you can adjust the displayed price to reflect the selected option.
    --not sure if this is the right way.. however it works.
    ---html--
    <div id="catProdAttributes2_8090953" class="productAttributes">
         <div class="catProductAttributeGroup" data-productattributegroup="1851262">
              <div class="catProdAttributeTitle">Warehouse</div>
              <div class="catProdAttributeItem">    
              <input type="radio" id="13466918" name="1851262" mandatory="1" />    
              <span>US Warehouse $0</span>
              <img src="/images/attributeimageUS.png" alt="US Warehouse" border="0" /></div>
              <div class="catProdAttributeItem">
              <input type="radio" id="13466919" name="1851262" mandatory="1" />
              <span>AUS Warehouse $2.26</span>
              <img src="/images/attributeimageAUS.png" alt="AUS Warehouse" border="0" />
              </div>
         </div>
    </div>
                    <span class="updated_price">{tag_totalprice}</span>
                    <span style="display:none;" class="original_price">{tag_totalprice}</span>
    --Script---
    <script type="text/javascript">
    $('.catProdAttributeItem img').on("click",function(){
    $(this) .siblings ('input[type=radio]') .attr('checked', true);
    var original_price = $('.original_price').text() .replace(/[^0-9\.]/g, '');
    parseFloat(this.original_price);
    var warehouse_price = $(this).siblings('.catProdAttributeItem span') .text() .replace(/[^0-9\.]/g, '');
         warehouse_price=parseFloat(warehouse_price);
    var total_price = parseFloat(original_price) + parseFloat(warehouse_price);
    $('.updated_price').html('$' + total_price.toFixed(2));
    </script>

  • Adding a free sample button to the large product layout?

    hello guys
    im trying to figure out how to add a free sample button to the large product layout
    the site is a tiles shop http://ceramic-planet2.businesscatalyst.com/
    and we want to give the customer the option of ordering a sample from the large layout of the product they are viewing.
    A sample button underneath the add to cart button that is free but still charges a few $ for p&p.
    so I figure the sample button would be a add to cart tag of a seperate product added to the layout of the main product it is based on.
    any ideas how I can link a new different product to a product layout.
    plus not every product will need this button so is there a way of adding it to certain products? im thinking maybe using the custom tag? can I link products to a custom tag?
    if im not being clear I apologise but hopefully its simples
    Dave

    thanks for the help so far Mihai_Tica
    almost there Ive played with the cutom template like you said
    I made a template called samplebutton which has a tag_name_nolink and a add to cart button. Thats it nothing fancy.
    every product is going to have its very own sample button so I couldn't just add this custom template to the large template as it would only work for that one item I linked it to.
    so I added the module code with added custom template to the custom tag field for the large product and added it to the page {tag_custom3)  thus able to add different sample products to different large products.
    and it looks like its going to work.......until I add to cart and the product reverts back to small product template take a look http://ceramic-planet2.businesscatalyst.com/bathroom-tiles/cardiff-marron
    any ideas why when I add to cart the product reverts to small product template and how I can stop this from happening?

  • Displaying large product layout on a page?

    I want to insert a product on a page but the module defaults to the small layout. Is there a way to display the large layout similarly?
    Thanks
    Tom

    Im including a seperate product onto a page for distirbutors sign up... we are doing it in stages though and the small product layout doesnt look right on the page -
    http://www.allnaturalassets.com/sign-up  as you can see the bottom where the item is, the small doesnt look good so im wanting to display the large layout for this one product on that page :-) The module doesnt allow it though out of the box :-)
    Thanks!
    Tom

  • Hiding Sub-Catalogs on Large Product View

    Hi BC Community,
    Wondering if anyone has any tips or tricks for hiding (or removing) the Sub-Catalog list from the Large Product.html page (e-commerce).  When looking at a detail view of a product, and that particular catalog has say 20 sub-catalogs, the detail view of the individual product is at the bottom of the sub-catalog list (which it should be), but it sucks that you have to scroll to the bottom of the page just to see the individual product.
    Any way around this?
    Thanks,
    Aaron

    Hey Aaron,
    You will have to look for an identifier element from the large product layout. If that exists on the page then with javascript you can manipulate the html to as you need with that and some css.

  • Hi is there any way around showing large product lay out through separate template from Over all layout?

    Hi, I have been thinking why everything except for the small product back up is tied up to the over all layouts template. Could any one give me advice on some ways I could display my large product page using a different template?
    Any suggestion will be appreciated. Thank you very much 

    Only with javascript and CSS and of a new template per catalog.

  • Setting output file name in export transaction data package

    Hi all,
    I am running an "export transaction data" package in the data manager. I wanted to set the output file name so that it will be a constant value. I wrote the following in the package editor:
    INFO(%FILE%,\ROOT\WEBFOLDERS\COLMOBIL\VEHICLES1\DATAMANGER\DATAFILES\vehicles_to_pca2.txt)
    TASK(/CPMB/TD_FILE_TARGET,FULLFILENAME,%FILE%)
    The system run the package and reported success but the file was not created. When i did the same with an existing file name, it was not updated.
    When I run the same package with the following PROMPT command instead of the INFO command:
    PROMPT(OUTFILE,,"Please enter an output file",Data files (*.txt)|*.txt|All files(*.*)|*.*)
    The system works fine.
    Any ideas?
    TIA
    Avihay

    I am sad to report that apparently Adobe does not do a very good job with the PDF printer. I have just spent over an hour with support to get the answer we can not help you. I guess I will have to spend $50 for NovaPDF to handle my problem. It's a shame when a superior overall product like Acrobat is not able to keep up with the knockoffs on the small things.

  • Complete product list in ICSS catalog for Reference Objects:Products

    In my current scenario, I have products that belong to different sales areas and while I create a catalog, I have created different variants for different sales area and assigned the products accordingly.
    The problem is, in the catalog usage (SPRO->CRM->Web Channel->e-service->catalog usage), I can create 1 catalog indicator corresponding to only 1 catalog variant and the same indicator I am giving in the XCM for ICSS catalogs. The problem is, as different variants have different products, the user would never be able to see the complete list of products but can only see the products belonging to 1 variant (whose indicator I have given in the XCM). The expectation is that the user should be able to see all the products (irrespective of the sales area ) in the Reference Object field (ICSS catalog).
    I tried different combinations like-
    1.Creating catalog views and assigning BPs. There is no option though of assigning a view in ICSS catalog
    2.Giving all the indicators in XCM separated by u2018,u2019. I was hoping that the string would be read with a delimiter in the code.
    3.Only giving the catalog name while creating the indicator in SPRO (Variant is not a mandatory option there). This resulted in runtime errors on the UI when I tried to access the catalog
    Can anyone suggest how we might be able to achieve this without any code enhancement?

    Hi,
    Checked the values in the Visual Admin -> Trex Service--> nameserver.address value is filled with the host name and port number
    But no nameserver.backupserverlist is maintained  . If it required should i give the same server details of the above property ei "namserver.add*"
    And also i found that in the Tcode SES_ADMIN , everything is blank and also in the ICSS/B2C/ADMIN portal . the Catalog Cache Statistics is blank, there is no Key or Catalogue Guid is present
    Please suggest me where to check now again .
    Regards
    Vikrant

  • Large Product Module

    How do I call a large product module onto the page? Here's the format for my small product module:
    {module_product,31999,5038261}. Where can I check?
    Thanks.

    Using KB Instructions:
    I tried:
    {module_product,31999,5038262, template = "/Layouts/OnlineShop/large_product.html"}
    {module_product,31999,5038262, /Layouts/OnlineShop/large_product.html}
    {module_product prodcutId="{{5038262}}" catalogID="{{31999}}" template="/_System/ModuleTemplates/Shop/productLarge.html"}
    {module_product prodcutId="{{5038262}}" catalogID="{{31999}}" template="/Layouts/OnlineShop/large_product.html}
    I'm using a directory to hold all my landing pages called /books. Do I need to type in the full URL of the large product template to call it up? How do I do that?

  • Catalog to click through product list

    Hello,
    I am trying to get this page: http://splendourinteriors.cloudsourcecms.com/services to behave as follows. The catalogs are displayed dinamically as they are added in the back-end, when clickting through the catalog you will see the list of products. Somehow I remember seeing this done and doing this by using the overall layout to display the catalogs and the individual catalog to display the products...and I don't remember writing any special js for it, it was working out of the box.
    However, now this no longer works. Clicking through catalogs it will display the list of sub-catalogs now (well, currently hidden but still there).
    Was this how it always worked and I am remember it wrongly? What can I do to make it display the list of products instead on catalog clickthrough?
    Thanks!
    Maria

    I had a look at that site and it seems to work the way you want it to work. Services is your top level catalogue. Any catalogue you create and add it as a subcatalogue to services will show up on http://splendourinteriors.cloudsourcecms.com/services page. If you click through to any of the catalogues on http://splendourinteriors.cloudsourcecms.com/services you will get a list of products. For example, I click on catalogue-1 and I'm taken to http://splendourinteriors.cloudsourcecms.com/services/catalog-1 where I can see the products inside that catalogue.
    In any case, whenever you're viewing something inside the online shop you are seeing the overall layout and tags {tag_cataloguelist} and {tag_productlist} are trying to render any subcatalogues or products the current catalogue you are viewing contains. Hope that makes sense
    Cheers,
    mario %)

  • Large Product page for Mobile ???

    I'm creating a mobile site. I just need a mobile page for the "large product" I can't use a template for the "Large Product" page why.?
    This would make life beautiful.
    So how do I go about creating a mobile Large Product Page? Can I redirect it?
    I'm frustrated.
    Please HELP Me.!!!

    They dont, they offer mobile layout options.
    Many mobile sites you see on the web at the moment are actually responsive designs which use media quries etc rather then totally different layouts.

  • Keep a checkbox checked on large product view with grouping

    hi I have this problem with my checked checkbox on my large product view. I've used JS and all is working fine but when I group products and I select anything in the drop down other than the default the product view breaks and the checkbox becomes unchecked.
    here is the site iv'e currently been working on for a long time!!
    Beyonce - Midnight Blue
    any help would be greatly appreciated
    thanks luke

    Hi Dave,
    The catalogue page is actually the Overall Layout inside Online Shop layouts. When you access the catalogue directly that's the layotu that get's rendered. That layout has {tag_cataloguelist...} and {tag_productlist...} which render sub-catalogues and products within that catalogue respectively.
    As for 2, I had a look at the site and it's behaving normally. Let me know if you need a detailed explanation of what it happening there.
    Cheers,
    -mario

  • Adding facebook comments to large product page

    hi guys I just wanted to go over the facebook intergration process *** ive read this http://kb.worldsecuresystems.com/kb/add-social-media.html
    but couldnt find the container.html page in admin, only dreamweaver.
    plus when ive checked out the forums on intergrating facebook comments there seems a work around because the current module doesnt work the way people want it. to.
    Is this still the case or should I go about intergrating facebook as described http://kb.worldsecuresystems.com/kb/add-social-media.html
    What I want to do is use it on this site on the large product section instead of the comments module ive inserted
    http://www.ceramicplanet.co.uk/bathroom-tiles/relief-white-5445-25x33cm
    would adding the script to the large product template manually work better than adding it to the facebook container.html page in the social modules folder?
    plus I got the impression peeps had trouble having the comments for that one item showing just on its own page. I want just comments for the product on show appearing on that product page not just any old list of random comments. Is this easy to do now or is there extra url tags needed?
    any advice or help will be greatly appreciated
    Dave
    oh just to say this is the code facebook gave out when I pressed get code but Ive noticed different versions on forum pages, is it right to use this
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="fb-comments" data-href="http://example.com/comments"
    data-colorscheme="The color scheme used in the plugin" data-numposts="5"
    data-width="420"></div>

    If you just want to keep it simple, Facebook has a social widget system that works from the URL, as long as the URL stays the same the comments will he there for that product or whatever you need.
    It is very easy to implment and even has a wizard to help you config the size and look.
    https://developers.facebook.com/docs/plugins/

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • Output file name format

    Hi All,
    How can i configure output file name to the desired format generated in target directory in communication channel configuration in conf scenario.
    ex: i want to generate the file in the below format..
    YYYYMMDD_<Receiver>.TXT
    Thanks and Regards
    Venkatesh

    Hi,
    This is the UDF u have to write in Mapping,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key =
    DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    Using this u will get the File name into target side,In this UDF add the Time stamp.
    Check this link for more details.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regards,
    phani
    Reward points if Helpful

Maybe you are looking for

  • Ipod claasic disconnection from my imac

    Hi Everytime I connect my ipod to my imac, it says it is OK to dissconnect, and then dissconnects. It is still connected as I am able to charge it, but it does not appear on the desktop, or in itunes. I also have a macbook pro, and it does appear on

  • How soon are they going to fix the problems with iPod Touch IOS 6?

    I'm using iPod Touch 4G with IOS 6.  I didnt noticed the crashes problems until now. I am having a problem with IOS 6.  I've read about the App store problem with crashes that everybody complaining about somewhere in community forum.  But there are m

  • HttpURLConnection and Proxies

    Hello I try to connect form java application behind proxy : I got time out exception.                 System.out.println("-START-");                System.getProperties().put( "proxySet", "true" );                System.getProperties().setProperty("h

  • Is it possible to configure IDOC with Business service

    hi Is it possible to configure IDOC with Business Service                       Thanking you....                                                                      aravind........... <Interview question locked, please read the [Rules of Engagement|

  • OS V6R1M0 cume package C8190610, ptf SF99354

    Hi Team, I would like share the issues that we encounted after applying the OS V6R1M0 cume package C8190610. The SAP Systems were not coming up and there were several issues after that 1) netstat option 3, and it was displaying garbage data We had ap