Thanks in advance,
I have listed products in my Home page & in Category pages but I want drop-down attribute that consist of colors like Yellow, Pink, Green etc... When one select any color from that drop-down then Price & Sku & also Product Image should also be changed.
Any Idea how to do it?
Thanks,
Kaushal.
User Profile
Collapse
-
About Product Listing in Magento
-
How to get products from categories in magento?
I want to display all the products from the individual categories. I am putting my code here that what i have done so far.
...Code:<?php $_main_categories = $this->getStoreCategories(); foreach ($_main_categories as $_main_category): ?> <li> <div style="width:593px;"> <?php $_products = $_main_category->getProductCollection();
-
ya from ajax. Actually the scenario is, I have different products lists. When i click on product, one div is generated in one parent(big) div. so as and when i click on products div's are getting generated. But the problem is sometimes the div generated before, comes down the order. I want the divs in first come first display order. Thanks. -
How to append a content into div?
I have actually used...
document.getEle mentById('div_1 23').innerHTML += content;
but sometimes a content added goes down & in place of that another content comes.
example- if I add in a div_123 2 contents:
1)abcde - very first time
2)xyz - second time
but sometimes div_123 displays:
xyz
abcde
actually it should be like:
abcde
xyz
... -
ok. Now can you tell me how to use getElementsById to identify a perticular tag & to echo that div's content. A small example please... Based on my xml file(I want to echo Hi based on id=2). In this how we can use getElementsById function?Leave a comment:
-
Thanks very much for your reply but if you provide coding for that, then it would be much easier to me.Leave a comment:
-
How to replace particular element's content in xml file using php?
I want to change Hi to How are You? What should be done. I want code for this replacement. Thanks in advance.Code:<main_xml> <tag1> <![CDATA[ <div id=1> Hello </div> <div id=2> Hi </div> ]]> </tag1> </main_xml> -
-
-
Kaushal Elsner replied to How to skip reading of a content of a particular tag in xml file using php?in PHPI don't know how to do it because i am new to XML but can you write the things which exactly i want.(That to just read "Hello")ins tead of Hi Hello How are you. Please do something.Leave a comment:
-
Kaushal Elsner started a topic How to skip reading of a content of a particular tag in xml file using php?in PHPHow to skip reading of a content of a particular tag in xml file using php?
Suppose this is an XML file.
My logic to read this xml file using php is...Code:<subject>Inquiry</subject> <message> <![CDATA[ <div>Hi</div> <div>Hello</div> <div>How Are You</div> ]]> </message>
...Code:$xml = simplexml_load_file("xml_mail_format2.xml"); foreach($xml->children() -
Kaushal Elsner replied to How to replace a perticular tag's content of an xml file with < instead of < ?in PHPThank you, Thank you very much. You have solved my question.All praise to you. Thank you once again.Leave a comment:
-
Kaushal Elsner replied to How to replace a perticular tag's content of an xml file with < instead of < ?in PHPThanks very much, I am trying what you have suggested. If error comes i will post reply.Thank you very much for giving me your precious time.Leave a comment:
-
Kaushal Elsner replied to How to replace a perticular tag's content of an xml file with < instead of < ?in PHPIt is not working. It gives error that:
Warning</b>: DOMNode::replac eChild() [<a href='domnode.r eplacechild'>do mnode.replacech ild</a>]: Couldn't fetch DOMCdataSection
Can you do something? It is a bit urgent, if you don't mind.Leave a comment:
-
Kaushal Elsner replied to How to replace a perticular tag's content of an xml file with < instead of < ?in PHPWill it work?Code:$newTrack = $doc->createElement('message'); $newTrack = $newTrack->appendChild($data); $oldtrack= $track->parentNode->replaceChild($newTrack,$track);Leave a comment:
-
Kaushal Elsner replied to How to replace a perticular tag's content of an xml file with < instead of < ?in PHPError Message :- DOMDocument::cr eateElement() expects parameter 2 to be string, object given.
...Code:$data = $_POST['editor123']; $doc = new DOMDocument; $doc->load('xml_mail_format2.xml'); $playlist= $doc->documentElement; $track = $playlist->getElementsByTagName("message")->item(0); $data = $doc->createCDATASection($data); $newTrackLeave a comment:
-
Kaushal Elsner replied to How to replace a perticular tag's content of an xml file with < instead of < ?in PHPbecause i am not getting the thing done.I am still having errors so i asked to you. So if you permit then i will send you the 2 files.Leave a comment:
-
Kaushal Elsner replied to How to replace a perticular tag's content of an xml file with < instead of < ?in PHPShould I send you the attachment of my xml & php file?
If you permit i send to you...I am waiting for your kind response. Thanks...Leave a comment:
-
Kaushal Elsner replied to How to replace a perticular tag's content of an xml file with < instead of < ?in PHP...Code:$doc = new DOMDocument; $doc->load('xml_mail_format2.xml'); $playlist= $doc->documentElement; $track = $playlist->getElementsByTagName("message")->item(0); $data = $doc->createCDATASection($data); $newTrack = $doc->createElement('message',$data); $oldtrack= $track->parentNode->replaceChild($newTrack,$track); $doc->saveXML();Leave a comment:
-
Kaushal Elsner replied to How to replace a perticular tag's content of an xml file with < instead of < ?in PHPThank you very much for the reply. I just test it & then tell you that if it benefits me or not...will post reply soon for this.Leave a comment:
No activity results to display
Show More
Leave a comment: